package c.e.a.b.f.b;

import android.content.ContentValues;
import android.content.Context;
import android.content.pm.PackageManager.NameNotFoundException;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteException;
import android.os.Bundle;
import android.text.TextUtils;
import b.i.b.f;
import c.e.a.b.b.j.b;
import c.e.a.b.b.j.c;
import c.e.a.b.e.c.a1;
import c.e.a.b.e.c.c1;
import c.e.a.b.e.c.e1;
import c.e.a.b.e.c.fa;
import c.e.a.b.e.c.ga;
import c.e.a.b.e.c.i1;
import c.e.a.b.e.c.u4;
import c.e.a.b.e.c.v8;
import c.e.a.b.e.c.z7;
import com.google.android.gms.measurement.internal.zzap;
import com.google.android.gms.measurement.internal.zzaq;
import com.google.android.gms.measurement.internal.zzku;
import com.google.android.gms.measurement.internal.zzn;
import com.google.android.gms.measurement.internal.zzz;
import com.huawei.hms.support.hianalytics.HiAnalyticsConstant;
import java.math.BigInteger;
import java.nio.channels.FileChannel;
import java.nio.channels.FileLock;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.Objects;

/* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */
public class k9 implements t5 {
    public static volatile k9 A;
    public p4 a;
    public x3 b;
    public g c;
    public b4 d;
    public h9 e;
    public ba f;
    public final q9 g;
    public g7 h;
    public q8 i;
    public final u4 j;
    public boolean k = false;
    public boolean l;
    public long m;
    public List<Runnable> n;
    public int o;
    public int p;
    public boolean q;
    public boolean r;
    public boolean s;
    public FileLock t;
    public FileChannel u;
    public List<Long> v;
    public List<Long> w;
    public long x;
    public final Map<String, d> y;
    public final v9 z = new n9(this);

    /* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */
    public class a {
        public e1 a;
        public List<Long> b;
        public List<a1> c;
        public long d;

        public a(k9 k9Var, j9 j9Var) {
        }

        public final void a(e1 e1Var) {
            this.a = e1Var;
        }

        public final boolean b(long j, a1 a1Var) {
            if (this.c == null) {
                this.c = new ArrayList();
            }
            if (this.b == null) {
                this.b = new ArrayList();
            }
            if (this.c.size() > 0 && ((((a1) this.c.get(0)).H() / 1000) / 60) / 60 != ((a1Var.H() / 1000) / 60) / 60) {
                return false;
            }
            long b = this.d + ((long) a1Var.b());
            if (b >= ((long) Math.max(0, ((Integer) p.i.a(null)).intValue()))) {
                return false;
            }
            this.d = b;
            this.c.add(a1Var);
            this.b.add(Long.valueOf(j));
            if (this.c.size() >= Math.max(1, ((Integer) p.j.a(null)).intValue())) {
                return false;
            }
            return true;
        }
    }

    public k9(r9 r9Var) {
        u4 f = u4.f(r9Var.a, null, null);
        this.j = f;
        this.x = -1;
        q9 q9Var = new q9(this);
        q9Var.o();
        this.g = q9Var;
        x3 x3Var = new x3(this);
        x3Var.o();
        this.b = x3Var;
        p4 p4Var = new p4(this);
        p4Var.o();
        this.a = p4Var;
        this.y = new HashMap();
        f.a().v(new j9(this, r9Var));
    }

    public static void C(i9 i9Var) {
        if (i9Var == null) {
            throw new IllegalStateException("Upload Component not created");
        } else if (!i9Var.c) {
            String valueOf = String.valueOf(i9Var.getClass());
            StringBuilder stringBuilder = new StringBuilder(valueOf.length() + 27);
            stringBuilder.append("Component not initialized: ");
            stringBuilder.append(valueOf);
            throw new IllegalStateException(stringBuilder.toString());
        }
    }

    public static k9 f(Context context) {
        Objects.requireNonNull(context, "null reference");
        Objects.requireNonNull(context.getApplicationContext(), "null reference");
        if (A == null) {
            synchronized (k9.class) {
                if (A == null) {
                    A = new k9(new r9(context));
                }
            }
        }
        return A;
    }

    public static void i(c.e.a.b.e.c.a1.a aVar, int i, String str) {
        List s = aVar.s();
        int i2 = 0;
        while (true) {
            String str2 = "_err";
            if (i2 >= s.size()) {
                c.e.a.b.e.c.c1.a Q = c1.Q();
                Q.o(str2);
                Q.n(Long.valueOf((long) i).longValue());
                c1 c1Var = (c1) ((u4) Q.l());
                Q = c1.Q();
                Q.o("_ev");
                Q.p(str);
                c1 c1Var2 = (c1) ((u4) Q.l());
                if (aVar.c) {
                    aVar.j();
                    aVar.c = false;
                }
                a1.A((a1) aVar.b, c1Var);
                if (aVar.c) {
                    aVar.j();
                    aVar.c = false;
                }
                a1.A((a1) aVar.b, c1Var2);
                return;
            } else if (!str2.equals(((c1) s.get(i2)).B())) {
                i2++;
            } else {
                return;
            }
        }
    }

    public static void j(c.e.a.b.e.c.a1.a aVar, String str) {
        List s = aVar.s();
        for (int i = 0; i < s.size(); i++) {
            if (str.equals(((c1) s.get(i)).B())) {
                aVar.u(i);
                return;
            }
        }
    }

    public final void A(c.e.a.b.e.c.a1.a aVar, c.e.a.b.e.c.a1.a aVar2) {
        f.J("_e".equals(aVar.v()));
        N();
        String str = "_et";
        c1 w = q9.w((a1) ((u4) aVar.l()), str);
        if (w.I() && w.J() > 0) {
            long J = w.J();
            N();
            w = q9.w((a1) ((u4) aVar2.l()), str);
            if (w != null && w.J() > 0) {
                J += w.J();
            }
            N();
            q9.E(aVar2, str, Long.valueOf(J));
            N();
            q9.E(aVar, "_fr", Long.valueOf(1));
        }
    }

    public final void B(zzaq zzaq, zzn zzn) {
        if (ga.a() && this.j.g.o(p.A0)) {
            u3 b = u3.b(zzaq);
            this.j.t().H(b.d, K().h0(zzn.a));
            this.j.t().Q(b, this.j.g.m(zzn.a));
            zzaq = b.a();
        }
        if (this.j.g.o(p.e0)) {
            if ("_cmp".equals(zzaq.a)) {
                if ("referrer API v2".equals(zzaq.b.a.getString("_cis"))) {
                    String string = zzaq.b.a.getString("gclid");
                    if (!TextUtils.isEmpty(string)) {
                        o(new zzku("_lgclid", zzaq.d, string, "auto"), zzn);
                    }
                }
            }
        }
        l(zzaq, zzn);
    }

    public final void D(zzku zzku, zzn zzn) {
        U();
        P();
        if (!L(zzn)) {
            return;
        }
        if (zzn.h) {
            if (!"_npa".equals(zzku.b) || zzn.s == null) {
                this.j.d().m.b("Removing user property", this.j.u().y(zzku.b));
                K().b0();
                try {
                    G(zzn);
                    K().V(zzn.a, zzku.b);
                    K().s();
                    this.j.d().m.b("User property removed", this.j.u().y(zzku.b));
                    return;
                } finally {
                    K().e0();
                }
            } else {
                this.j.d().m.a("Falling back to manifest metadata value for ad personalization");
                Objects.requireNonNull((c) this.j.n);
                o(new zzku("_npa", System.currentTimeMillis(), Long.valueOf(zzn.s.booleanValue() ? 1 : 0), "auto"), zzn);
                return;
            }
        }
        G(zzn);
    }

    /* JADX WARNING: Removed duplicated region for block: B:129:0x03b5 A:{Catch:{ SQLiteException -> 0x01c4, all -> 0x04b4 }} */
    /* JADX WARNING: Removed duplicated region for block: B:78:0x024a A:{Catch:{ SQLiteException -> 0x01c4, all -> 0x04b4 }} */
    /* JADX WARNING: Removed duplicated region for block: B:77:0x023d A:{Catch:{ SQLiteException -> 0x01c4, all -> 0x04b4 }} */
    /* JADX WARNING: Removed duplicated region for block: B:155:0x0488 A:{Catch:{ SQLiteException -> 0x01c4, all -> 0x04b4 }} */
    /* JADX WARNING: Removed duplicated region for block: B:83:0x025e A:{Catch:{ SQLiteException -> 0x01c4, all -> 0x04b4 }} */
    /* JADX WARNING: Removed duplicated region for block: B:45:0x0125 A:{Catch:{ SQLiteException -> 0x01c4, all -> 0x04b4 }} */
    /* JADX WARNING: Removed duplicated region for block: B:57:0x01d8 A:{Catch:{ SQLiteException -> 0x01c4, all -> 0x04b4 }} */
    /* JADX WARNING: Removed duplicated region for block: B:77:0x023d A:{Catch:{ SQLiteException -> 0x01c4, all -> 0x04b4 }} */
    /* JADX WARNING: Removed duplicated region for block: B:78:0x024a A:{Catch:{ SQLiteException -> 0x01c4, all -> 0x04b4 }} */
    /* JADX WARNING: Removed duplicated region for block: B:83:0x025e A:{Catch:{ SQLiteException -> 0x01c4, all -> 0x04b4 }} */
    /* JADX WARNING: Removed duplicated region for block: B:155:0x0488 A:{Catch:{ SQLiteException -> 0x01c4, all -> 0x04b4 }} */
    public final void E(com.google.android.gms.measurement.internal.zzn r23) {
        /*
        r22 = this;
        r1 = r22;
        r2 = r23;
        r3 = "_sysu";
        r4 = "_sys";
        r5 = "_pfo";
        r6 = "_uwa";
        r0 = "app_id=?";
        r22.U();
        r22.P();
        r7 = "null reference";
        java.util.Objects.requireNonNull(r2, r7);
        r7 = r2.a;
        b.i.b.f.N(r7);
        r7 = r22.L(r23);
        if (r7 != 0) goto L_0x0025;
    L_0x0024:
        return;
    L_0x0025:
        r7 = r22.K();
        r8 = r2.a;
        r7 = r7.T(r8);
        r8 = 0;
        if (r7 == 0) goto L_0x005d;
    L_0x0033:
        r10 = r7.v();
        r10 = android.text.TextUtils.isEmpty(r10);
        if (r10 == 0) goto L_0x005d;
    L_0x003d:
        r10 = r2.b;
        r10 = android.text.TextUtils.isEmpty(r10);
        if (r10 != 0) goto L_0x005d;
    L_0x0045:
        r7.F(r8);
        r10 = r22.K();
        r10.I(r7);
        r7 = r22.H();
        r10 = r2.a;
        r7.g();
        r7 = r7.g;
        r7.remove(r10);
    L_0x005d:
        r7 = r2.h;
        if (r7 != 0) goto L_0x0065;
    L_0x0061:
        r22.G(r23);
        return;
    L_0x0065:
        r10 = r2.m;
        r7 = (r10 > r8 ? 1 : (r10 == r8 ? 0 : -1));
        if (r7 != 0) goto L_0x0078;
    L_0x006b:
        r7 = r1.j;
        r7 = r7.n;
        r7 = (c.e.a.b.b.j.c) r7;
        java.util.Objects.requireNonNull(r7);
        r10 = java.lang.System.currentTimeMillis();
    L_0x0078:
        r7 = r1.j;
        r7 = r7.y();
        r7.g();
        r14 = 0;
        r7.g = r14;
        r7.h = r8;
        r7 = r2.n;
        r15 = 0;
        r13 = 1;
        if (r7 == 0) goto L_0x00a6;
    L_0x008c:
        if (r7 == r13) goto L_0x00a6;
    L_0x008e:
        r12 = r1.j;
        r12 = r12.d();
        r12 = r12.i;
        r13 = r2.a;
        r13 = c.e.a.b.f.b.q3.s(r13);
        r7 = java.lang.Integer.valueOf(r7);
        r14 = "Incorrect app type, assuming installed app. appId, appType";
        r12.c(r14, r13, r7);
        r7 = 0;
    L_0x00a6:
        r12 = r22.K();
        r12.b0();
        r12 = r22.K();	 Catch:{ all -> 0x04b4 }
        r13 = r2.a;	 Catch:{ all -> 0x04b4 }
        r14 = "_npa";
        r14 = r12.Y(r13, r14);	 Catch:{ all -> 0x04b4 }
        if (r14 == 0) goto L_0x00c9;
    L_0x00bb:
        r12 = "auto";
        r13 = r14.b;	 Catch:{ all -> 0x04b4 }
        r12 = r12.equals(r13);	 Catch:{ all -> 0x04b4 }
        if (r12 == 0) goto L_0x00c6;
    L_0x00c5:
        goto L_0x00c9;
    L_0x00c6:
        r18 = 0;
        goto L_0x0119;
    L_0x00c9:
        r12 = r2.s;	 Catch:{ all -> 0x04b4 }
        if (r12 == 0) goto L_0x0104;
    L_0x00cd:
        r13 = new com.google.android.gms.measurement.internal.zzku;	 Catch:{ all -> 0x04b4 }
        r18 = "_npa";
        r12 = r12.booleanValue();	 Catch:{ all -> 0x04b4 }
        if (r12 == 0) goto L_0x00da;
    L_0x00d7:
        r19 = 1;
        goto L_0x00dc;
    L_0x00da:
        r19 = r8;
    L_0x00dc:
        r19 = java.lang.Long.valueOf(r19);	 Catch:{ all -> 0x04b4 }
        r20 = "auto";
        r8 = 1;
        r12 = r13;
        r8 = r13;
        r9 = 1;
        r13 = r18;
        r9 = r14;
        r18 = 0;
        r14 = r10;
        r16 = r19;
        r17 = r20;
        r12.m8204init(r13, r14, r16, r17);	 Catch:{ all -> 0x04b4 }
        if (r9 == 0) goto L_0x0100;
    L_0x00f6:
        r9 = r9.e;	 Catch:{ all -> 0x04b4 }
        r12 = r8.d;	 Catch:{ all -> 0x04b4 }
        r9 = r9.equals(r12);	 Catch:{ all -> 0x04b4 }
        if (r9 != 0) goto L_0x0119;
    L_0x0100:
        r1.o(r8, r2);	 Catch:{ all -> 0x04b4 }
        goto L_0x0119;
    L_0x0104:
        r9 = r14;
        r18 = 0;
        if (r9 == 0) goto L_0x0119;
    L_0x0109:
        r8 = new com.google.android.gms.measurement.internal.zzku;	 Catch:{ all -> 0x04b4 }
        r13 = "_npa";
        r16 = 0;
        r17 = "auto";
        r12 = r8;
        r14 = r10;
        r12.m8204init(r13, r14, r16, r17);	 Catch:{ all -> 0x04b4 }
        r1.D(r8, r2);	 Catch:{ all -> 0x04b4 }
    L_0x0119:
        r8 = r22.K();	 Catch:{ all -> 0x04b4 }
        r9 = r2.a;	 Catch:{ all -> 0x04b4 }
        r14 = r8.T(r9);	 Catch:{ all -> 0x04b4 }
        if (r14 == 0) goto L_0x01d6;
    L_0x0125:
        r8 = r1.j;	 Catch:{ all -> 0x04b4 }
        r8.t();	 Catch:{ all -> 0x04b4 }
        r8 = r2.b;	 Catch:{ all -> 0x04b4 }
        r9 = r14.v();	 Catch:{ all -> 0x04b4 }
        r12 = r2.r;	 Catch:{ all -> 0x04b4 }
        r13 = r14.y();	 Catch:{ all -> 0x04b4 }
        r8 = c.e.a.b.f.b.t9.d0(r8, r9, r12, r13);	 Catch:{ all -> 0x04b4 }
        if (r8 == 0) goto L_0x01d6;
    L_0x013c:
        r8 = r1.j;	 Catch:{ all -> 0x04b4 }
        r8 = r8.d();	 Catch:{ all -> 0x04b4 }
        r8 = r8.i;	 Catch:{ all -> 0x04b4 }
        r9 = "New GMP App Id passed in. Removing cached database data. appId";
        r12 = r14.o();	 Catch:{ all -> 0x04b4 }
        r12 = c.e.a.b.f.b.q3.s(r12);	 Catch:{ all -> 0x04b4 }
        r8.b(r9, r12);	 Catch:{ all -> 0x04b4 }
        r8 = r22.K();	 Catch:{ all -> 0x04b4 }
        r9 = r14.o();	 Catch:{ all -> 0x04b4 }
        r8.n();	 Catch:{ all -> 0x04b4 }
        r8.g();	 Catch:{ all -> 0x04b4 }
        b.i.b.f.N(r9);	 Catch:{ all -> 0x04b4 }
        r12 = r8.t();	 Catch:{ SQLiteException -> 0x01c4 }
        r13 = 1;
        r14 = new java.lang.String[r13];	 Catch:{ SQLiteException -> 0x01c4 }
        r15 = 0;
        r14[r15] = r9;	 Catch:{ SQLiteException -> 0x01c4 }
        r13 = "events";
        r13 = r12.delete(r13, r0, r14);	 Catch:{ SQLiteException -> 0x01c4 }
        r13 = r13 + r15;
        r15 = "user_attributes";
        r15 = r12.delete(r15, r0, r14);	 Catch:{ SQLiteException -> 0x01c4 }
        r13 = r13 + r15;
        r15 = "conditional_properties";
        r15 = r12.delete(r15, r0, r14);	 Catch:{ SQLiteException -> 0x01c4 }
        r13 = r13 + r15;
        r15 = "apps";
        r15 = r12.delete(r15, r0, r14);	 Catch:{ SQLiteException -> 0x01c4 }
        r13 = r13 + r15;
        r15 = "raw_events";
        r15 = r12.delete(r15, r0, r14);	 Catch:{ SQLiteException -> 0x01c4 }
        r13 = r13 + r15;
        r15 = "raw_events_metadata";
        r15 = r12.delete(r15, r0, r14);	 Catch:{ SQLiteException -> 0x01c4 }
        r13 = r13 + r15;
        r15 = "event_filters";
        r15 = r12.delete(r15, r0, r14);	 Catch:{ SQLiteException -> 0x01c4 }
        r13 = r13 + r15;
        r15 = "property_filters";
        r15 = r12.delete(r15, r0, r14);	 Catch:{ SQLiteException -> 0x01c4 }
        r13 = r13 + r15;
        r15 = "audience_filter_values";
        r15 = r12.delete(r15, r0, r14);	 Catch:{ SQLiteException -> 0x01c4 }
        r13 = r13 + r15;
        r15 = "consent_settings";
        r0 = r12.delete(r15, r0, r14);	 Catch:{ SQLiteException -> 0x01c4 }
        r13 = r13 + r0;
        if (r13 <= 0) goto L_0x01d4;
    L_0x01b4:
        r0 = r8.d();	 Catch:{ SQLiteException -> 0x01c4 }
        r0 = r0.n;	 Catch:{ SQLiteException -> 0x01c4 }
        r12 = "Deleted application data. app, records";
        r13 = java.lang.Integer.valueOf(r13);	 Catch:{ SQLiteException -> 0x01c4 }
        r0.c(r12, r9, r13);	 Catch:{ SQLiteException -> 0x01c4 }
        goto L_0x01d4;
    L_0x01c4:
        r0 = move-exception;
        r8 = r8.d();	 Catch:{ all -> 0x04b4 }
        r8 = r8.f;	 Catch:{ all -> 0x04b4 }
        r12 = "Error deleting application data. appId, error";
        r9 = c.e.a.b.f.b.q3.s(r9);	 Catch:{ all -> 0x04b4 }
        r8.c(r12, r9, r0);	 Catch:{ all -> 0x04b4 }
    L_0x01d4:
        r14 = r18;
    L_0x01d6:
        if (r14 == 0) goto L_0x0237;
    L_0x01d8:
        r8 = r14.N();	 Catch:{ all -> 0x04b4 }
        r12 = -2147483648; // 0xffffffff80000000 float:-0.0 double:NaN;
        r0 = (r8 > r12 ? 1 : (r8 == r12 ? 0 : -1));
        if (r0 == 0) goto L_0x01ef;
    L_0x01e3:
        r8 = r14.N();	 Catch:{ all -> 0x04b4 }
        r12 = r2.j;	 Catch:{ all -> 0x04b4 }
        r0 = (r8 > r12 ? 1 : (r8 == r12 ? 0 : -1));
        if (r0 == 0) goto L_0x01ef;
    L_0x01ed:
        r0 = 1;
        goto L_0x01f0;
    L_0x01ef:
        r0 = 0;
    L_0x01f0:
        r8 = r14.N();	 Catch:{ all -> 0x04b4 }
        r12 = -2147483648; // 0xffffffff80000000 float:-0.0 double:NaN;
        r15 = (r8 > r12 ? 1 : (r8 == r12 ? 0 : -1));
        if (r15 != 0) goto L_0x020f;
    L_0x01fb:
        r8 = r14.M();	 Catch:{ all -> 0x04b4 }
        if (r8 == 0) goto L_0x020f;
    L_0x0201:
        r8 = r14.M();	 Catch:{ all -> 0x04b4 }
        r9 = r2.c;	 Catch:{ all -> 0x04b4 }
        r8 = r8.equals(r9);	 Catch:{ all -> 0x04b4 }
        if (r8 != 0) goto L_0x020f;
    L_0x020d:
        r15 = 1;
        goto L_0x0210;
    L_0x020f:
        r15 = 0;
    L_0x0210:
        r0 = r0 | r15;
        if (r0 == 0) goto L_0x0237;
    L_0x0213:
        r0 = new android.os.Bundle;	 Catch:{ all -> 0x04b4 }
        r0.<init>();	 Catch:{ all -> 0x04b4 }
        r8 = "_pv";
        r9 = r14.M();	 Catch:{ all -> 0x04b4 }
        r0.putString(r8, r9);	 Catch:{ all -> 0x04b4 }
        r8 = new com.google.android.gms.measurement.internal.zzaq;	 Catch:{ all -> 0x04b4 }
        r13 = "_au";
        r14 = new com.google.android.gms.measurement.internal.zzap;	 Catch:{ all -> 0x04b4 }
        r14.m8197init(r0);	 Catch:{ all -> 0x04b4 }
        r15 = "auto";
        r12 = r8;
        r9 = 0;
        r16 = r10;
        r12.m8200init(r13, r14, r15, r16);	 Catch:{ all -> 0x04b4 }
        r1.l(r8, r2);	 Catch:{ all -> 0x04b4 }
        goto L_0x0238;
    L_0x0237:
        r9 = 0;
    L_0x0238:
        r22.G(r23);	 Catch:{ all -> 0x04b4 }
        if (r7 != 0) goto L_0x024a;
    L_0x023d:
        r0 = r22.K();	 Catch:{ all -> 0x04b4 }
        r8 = r2.a;	 Catch:{ all -> 0x04b4 }
        r12 = "_f";
        r14 = r0.z(r8, r12);	 Catch:{ all -> 0x04b4 }
        goto L_0x025c;
    L_0x024a:
        r8 = 1;
        if (r7 != r8) goto L_0x025a;
    L_0x024d:
        r0 = r22.K();	 Catch:{ all -> 0x04b4 }
        r8 = r2.a;	 Catch:{ all -> 0x04b4 }
        r12 = "_v";
        r14 = r0.z(r8, r12);	 Catch:{ all -> 0x04b4 }
        goto L_0x025c;
    L_0x025a:
        r14 = r18;
    L_0x025c:
        if (r14 != 0) goto L_0x0488;
    L_0x025e:
        r12 = 3600000; // 0x36ee80 float:5.044674E-39 double:1.7786363E-317;
        r14 = r10 / r12;
        r16 = 1;
        r14 = r14 + r16;
        r14 = r14 * r12;
        r0 = "_dac";
        r8 = "_r";
        r13 = "_c";
        r12 = "_et";
        if (r7 != 0) goto L_0x03eb;
    L_0x0273:
        r7 = new com.google.android.gms.measurement.internal.zzku;	 Catch:{ all -> 0x04b4 }
        r16 = "_fot";
        r17 = java.lang.Long.valueOf(r14);	 Catch:{ all -> 0x04b4 }
        r19 = "auto";
        r14 = r12;
        r12 = r7;
        r15 = r13;
        r13 = r16;
        r21 = r14;
        r9 = r15;
        r14 = r10;
        r16 = r17;
        r17 = r19;
        r12.m8204init(r13, r14, r16, r17);	 Catch:{ all -> 0x04b4 }
        r1.o(r7, r2);	 Catch:{ all -> 0x04b4 }
        r22.U();	 Catch:{ all -> 0x04b4 }
        r7 = r1.j;	 Catch:{ all -> 0x04b4 }
        r7 = r7.w;	 Catch:{ all -> 0x04b4 }
        r12 = r2.a;	 Catch:{ all -> 0x04b4 }
        r7.a(r12);	 Catch:{ all -> 0x04b4 }
        r22.U();	 Catch:{ all -> 0x04b4 }
        r22.P();	 Catch:{ all -> 0x04b4 }
        r7 = new android.os.Bundle;	 Catch:{ all -> 0x04b4 }
        r7.<init>();	 Catch:{ all -> 0x04b4 }
        r12 = 1;
        r7.putLong(r9, r12);	 Catch:{ all -> 0x04b4 }
        r7.putLong(r8, r12);	 Catch:{ all -> 0x04b4 }
        r8 = 0;
        r7.putLong(r6, r8);	 Catch:{ all -> 0x04b4 }
        r7.putLong(r5, r8);	 Catch:{ all -> 0x04b4 }
        r7.putLong(r4, r8);	 Catch:{ all -> 0x04b4 }
        r7.putLong(r3, r8);	 Catch:{ all -> 0x04b4 }
        r8 = r1.j;	 Catch:{ all -> 0x04b4 }
        r8 = r8.g;	 Catch:{ all -> 0x04b4 }
        r9 = r2.a;	 Catch:{ all -> 0x04b4 }
        r12 = c.e.a.b.f.b.p.T;	 Catch:{ all -> 0x04b4 }
        r8 = r8.u(r9, r12);	 Catch:{ all -> 0x04b4 }
        if (r8 == 0) goto L_0x02d3;
    L_0x02cb:
        r8 = r21;
        r12 = 1;
        r7.putLong(r8, r12);	 Catch:{ all -> 0x04b4 }
        goto L_0x02d7;
    L_0x02d3:
        r8 = r21;
        r12 = 1;
    L_0x02d7:
        r9 = r2.q;	 Catch:{ all -> 0x04b4 }
        if (r9 == 0) goto L_0x02de;
    L_0x02db:
        r7.putLong(r0, r12);	 Catch:{ all -> 0x04b4 }
    L_0x02de:
        r0 = r22.K();	 Catch:{ all -> 0x04b4 }
        r9 = r2.a;	 Catch:{ all -> 0x04b4 }
        b.i.b.f.N(r9);	 Catch:{ all -> 0x04b4 }
        r0.g();	 Catch:{ all -> 0x04b4 }
        r0.n();	 Catch:{ all -> 0x04b4 }
        r12 = "first_open_count";
        r14 = r0.g0(r9, r12);	 Catch:{ all -> 0x04b4 }
        r0 = r1.j;	 Catch:{ all -> 0x04b4 }
        r0 = r0.a;	 Catch:{ all -> 0x04b4 }
        r0 = r0.getPackageManager();	 Catch:{ all -> 0x04b4 }
        if (r0 != 0) goto L_0x0317;
    L_0x02fd:
        r0 = r1.j;	 Catch:{ all -> 0x04b4 }
        r0 = r0.d();	 Catch:{ all -> 0x04b4 }
        r0 = r0.f;	 Catch:{ all -> 0x04b4 }
        r3 = "PackageManager is null, first open report might be inaccurate. appId";
        r4 = r2.a;	 Catch:{ all -> 0x04b4 }
        r4 = c.e.a.b.f.b.q3.s(r4);	 Catch:{ all -> 0x04b4 }
        r0.b(r3, r4);	 Catch:{ all -> 0x04b4 }
        r21 = r8;
        r8 = r14;
    L_0x0313:
        r3 = 0;
        goto L_0x03cd;
    L_0x0317:
        r0 = r1.j;	 Catch:{ NameNotFoundException -> 0x0327 }
        r0 = r0.a;	 Catch:{ NameNotFoundException -> 0x0327 }
        r0 = c.e.a.b.b.k.b.a(r0);	 Catch:{ NameNotFoundException -> 0x0327 }
        r9 = r2.a;	 Catch:{ NameNotFoundException -> 0x0327 }
        r12 = 0;
        r0 = r0.b(r9, r12);	 Catch:{ NameNotFoundException -> 0x0327 }
        goto L_0x033d;
    L_0x0327:
        r0 = move-exception;
        r9 = r1.j;	 Catch:{ all -> 0x04b4 }
        r9 = r9.d();	 Catch:{ all -> 0x04b4 }
        r9 = r9.f;	 Catch:{ all -> 0x04b4 }
        r12 = "Package info is null, first open report might be inaccurate. appId";
        r13 = r2.a;	 Catch:{ all -> 0x04b4 }
        r13 = c.e.a.b.f.b.q3.s(r13);	 Catch:{ all -> 0x04b4 }
        r9.c(r12, r13, r0);	 Catch:{ all -> 0x04b4 }
        r0 = r18;
    L_0x033d:
        if (r0 == 0) goto L_0x038a;
    L_0x033f:
        r12 = r0.firstInstallTime;	 Catch:{ all -> 0x04b4 }
        r16 = 0;
        r9 = (r12 > r16 ? 1 : (r12 == r16 ? 0 : -1));
        if (r9 == 0) goto L_0x038a;
    L_0x0347:
        r21 = r8;
        r8 = r0.lastUpdateTime;	 Catch:{ all -> 0x04b4 }
        r0 = (r12 > r8 ? 1 : (r12 == r8 ? 0 : -1));
        if (r0 == 0) goto L_0x036e;
    L_0x034f:
        r0 = r1.j;	 Catch:{ all -> 0x04b4 }
        r0 = r0.g;	 Catch:{ all -> 0x04b4 }
        r8 = c.e.a.b.f.b.p.n0;	 Catch:{ all -> 0x04b4 }
        r0 = r0.o(r8);	 Catch:{ all -> 0x04b4 }
        if (r0 == 0) goto L_0x0367;
    L_0x035b:
        r8 = 0;
        r0 = (r14 > r8 ? 1 : (r14 == r8 ? 0 : -1));
        if (r0 != 0) goto L_0x036c;
    L_0x0361:
        r8 = 1;
        r7.putLong(r6, r8);	 Catch:{ all -> 0x04b4 }
        goto L_0x036c;
    L_0x0367:
        r8 = 1;
        r7.putLong(r6, r8);	 Catch:{ all -> 0x04b4 }
    L_0x036c:
        r0 = 0;
        goto L_0x036f;
    L_0x036e:
        r0 = 1;
    L_0x036f:
        r6 = new com.google.android.gms.measurement.internal.zzku;	 Catch:{ all -> 0x04b4 }
        r13 = "_fi";
        if (r0 == 0) goto L_0x0378;
    L_0x0375:
        r8 = 1;
        goto L_0x037a;
    L_0x0378:
        r8 = 0;
    L_0x037a:
        r16 = java.lang.Long.valueOf(r8);	 Catch:{ all -> 0x04b4 }
        r17 = "auto";
        r12 = r6;
        r8 = r14;
        r14 = r10;
        r12.m8204init(r13, r14, r16, r17);	 Catch:{ all -> 0x04b4 }
        r1.o(r6, r2);	 Catch:{ all -> 0x04b4 }
        goto L_0x038d;
    L_0x038a:
        r21 = r8;
        r8 = r14;
    L_0x038d:
        r0 = r1.j;	 Catch:{ NameNotFoundException -> 0x039d }
        r0 = r0.a;	 Catch:{ NameNotFoundException -> 0x039d }
        r0 = c.e.a.b.b.k.b.a(r0);	 Catch:{ NameNotFoundException -> 0x039d }
        r6 = r2.a;	 Catch:{ NameNotFoundException -> 0x039d }
        r12 = 0;
        r14 = r0.a(r6, r12);	 Catch:{ NameNotFoundException -> 0x039d }
        goto L_0x03b3;
    L_0x039d:
        r0 = move-exception;
        r6 = r1.j;	 Catch:{ all -> 0x04b4 }
        r6 = r6.d();	 Catch:{ all -> 0x04b4 }
        r6 = r6.f;	 Catch:{ all -> 0x04b4 }
        r12 = "Application info is null, first open report might be inaccurate. appId";
        r13 = r2.a;	 Catch:{ all -> 0x04b4 }
        r13 = c.e.a.b.f.b.q3.s(r13);	 Catch:{ all -> 0x04b4 }
        r6.c(r12, r13, r0);	 Catch:{ all -> 0x04b4 }
        r14 = r18;
    L_0x03b3:
        if (r14 == 0) goto L_0x0313;
    L_0x03b5:
        r0 = r14.flags;	 Catch:{ all -> 0x04b4 }
        r6 = 1;
        r0 = r0 & r6;
        if (r0 == 0) goto L_0x03c0;
    L_0x03bb:
        r12 = 1;
        r7.putLong(r4, r12);	 Catch:{ all -> 0x04b4 }
    L_0x03c0:
        r0 = r14.flags;	 Catch:{ all -> 0x04b4 }
        r0 = r0 & 128;
        if (r0 == 0) goto L_0x0313;
    L_0x03c6:
        r12 = 1;
        r7.putLong(r3, r12);	 Catch:{ all -> 0x04b4 }
        goto L_0x0313;
    L_0x03cd:
        r0 = (r8 > r3 ? 1 : (r8 == r3 ? 0 : -1));
        if (r0 < 0) goto L_0x03d4;
    L_0x03d1:
        r7.putLong(r5, r8);	 Catch:{ all -> 0x04b4 }
    L_0x03d4:
        r0 = new com.google.android.gms.measurement.internal.zzaq;	 Catch:{ all -> 0x04b4 }
        r13 = "_f";
        r14 = new com.google.android.gms.measurement.internal.zzap;	 Catch:{ all -> 0x04b4 }
        r14.m8197init(r7);	 Catch:{ all -> 0x04b4 }
        r15 = "auto";
        r12 = r0;
        r16 = r10;
        r12.m8200init(r13, r14, r15, r16);	 Catch:{ all -> 0x04b4 }
        r1.B(r0, r2);	 Catch:{ all -> 0x04b4 }
        r3 = r21;
        goto L_0x0446;
    L_0x03eb:
        r3 = r12;
        r9 = r13;
        r4 = 1;
        if (r7 != r4) goto L_0x0446;
    L_0x03f0:
        r4 = new com.google.android.gms.measurement.internal.zzku;	 Catch:{ all -> 0x04b4 }
        r13 = "_fvt";
        r16 = java.lang.Long.valueOf(r14);	 Catch:{ all -> 0x04b4 }
        r17 = "auto";
        r12 = r4;
        r14 = r10;
        r12.m8204init(r13, r14, r16, r17);	 Catch:{ all -> 0x04b4 }
        r1.o(r4, r2);	 Catch:{ all -> 0x04b4 }
        r22.U();	 Catch:{ all -> 0x04b4 }
        r22.P();	 Catch:{ all -> 0x04b4 }
        r4 = new android.os.Bundle;	 Catch:{ all -> 0x04b4 }
        r4.<init>();	 Catch:{ all -> 0x04b4 }
        r5 = 1;
        r4.putLong(r9, r5);	 Catch:{ all -> 0x04b4 }
        r4.putLong(r8, r5);	 Catch:{ all -> 0x04b4 }
        r5 = r1.j;	 Catch:{ all -> 0x04b4 }
        r5 = r5.g;	 Catch:{ all -> 0x04b4 }
        r6 = r2.a;	 Catch:{ all -> 0x04b4 }
        r7 = c.e.a.b.f.b.p.T;	 Catch:{ all -> 0x04b4 }
        r5 = r5.u(r6, r7);	 Catch:{ all -> 0x04b4 }
        if (r5 == 0) goto L_0x0429;
    L_0x0423:
        r5 = 1;
        r4.putLong(r3, r5);	 Catch:{ all -> 0x04b4 }
        goto L_0x042b;
    L_0x0429:
        r5 = 1;
    L_0x042b:
        r7 = r2.q;	 Catch:{ all -> 0x04b4 }
        if (r7 == 0) goto L_0x0432;
    L_0x042f:
        r4.putLong(r0, r5);	 Catch:{ all -> 0x04b4 }
    L_0x0432:
        r0 = new com.google.android.gms.measurement.internal.zzaq;	 Catch:{ all -> 0x04b4 }
        r13 = "_v";
        r14 = new com.google.android.gms.measurement.internal.zzap;	 Catch:{ all -> 0x04b4 }
        r14.m8197init(r4);	 Catch:{ all -> 0x04b4 }
        r15 = "auto";
        r12 = r0;
        r16 = r10;
        r12.m8200init(r13, r14, r15, r16);	 Catch:{ all -> 0x04b4 }
        r1.B(r0, r2);	 Catch:{ all -> 0x04b4 }
    L_0x0446:
        r0 = r1.j;	 Catch:{ all -> 0x04b4 }
        r0 = r0.g;	 Catch:{ all -> 0x04b4 }
        r4 = r2.a;	 Catch:{ all -> 0x04b4 }
        r5 = c.e.a.b.f.b.p.U;	 Catch:{ all -> 0x04b4 }
        r0 = r0.u(r4, r5);	 Catch:{ all -> 0x04b4 }
        if (r0 != 0) goto L_0x04a5;
    L_0x0454:
        r0 = new android.os.Bundle;	 Catch:{ all -> 0x04b4 }
        r0.<init>();	 Catch:{ all -> 0x04b4 }
        r4 = 1;
        r0.putLong(r3, r4);	 Catch:{ all -> 0x04b4 }
        r3 = r1.j;	 Catch:{ all -> 0x04b4 }
        r3 = r3.g;	 Catch:{ all -> 0x04b4 }
        r4 = r2.a;	 Catch:{ all -> 0x04b4 }
        r5 = c.e.a.b.f.b.p.T;	 Catch:{ all -> 0x04b4 }
        r3 = r3.u(r4, r5);	 Catch:{ all -> 0x04b4 }
        if (r3 == 0) goto L_0x0473;
    L_0x046c:
        r3 = "_fr";
        r4 = 1;
        r0.putLong(r3, r4);	 Catch:{ all -> 0x04b4 }
    L_0x0473:
        r3 = new com.google.android.gms.measurement.internal.zzaq;	 Catch:{ all -> 0x04b4 }
        r13 = "_e";
        r14 = new com.google.android.gms.measurement.internal.zzap;	 Catch:{ all -> 0x04b4 }
        r14.m8197init(r0);	 Catch:{ all -> 0x04b4 }
        r15 = "auto";
        r12 = r3;
        r16 = r10;
        r12.m8200init(r13, r14, r15, r16);	 Catch:{ all -> 0x04b4 }
        r1.B(r3, r2);	 Catch:{ all -> 0x04b4 }
        goto L_0x04a5;
    L_0x0488:
        r0 = r2.i;	 Catch:{ all -> 0x04b4 }
        if (r0 == 0) goto L_0x04a5;
    L_0x048c:
        r0 = new android.os.Bundle;	 Catch:{ all -> 0x04b4 }
        r0.<init>();	 Catch:{ all -> 0x04b4 }
        r3 = new com.google.android.gms.measurement.internal.zzaq;	 Catch:{ all -> 0x04b4 }
        r13 = "_cd";
        r14 = new com.google.android.gms.measurement.internal.zzap;	 Catch:{ all -> 0x04b4 }
        r14.m8197init(r0);	 Catch:{ all -> 0x04b4 }
        r15 = "auto";
        r12 = r3;
        r16 = r10;
        r12.m8200init(r13, r14, r15, r16);	 Catch:{ all -> 0x04b4 }
        r1.B(r3, r2);	 Catch:{ all -> 0x04b4 }
    L_0x04a5:
        r0 = r22.K();	 Catch:{ all -> 0x04b4 }
        r0.s();	 Catch:{ all -> 0x04b4 }
        r0 = r22.K();
        r0.e0();
        return;
    L_0x04b4:
        r0 = move-exception;
        r2 = r22.K();
        r2.e0();
        throw r0;
        */
        throw new UnsupportedOperationException("Method not decompiled: c.e.a.b.f.b.k9.E(com.google.android.gms.measurement.internal.zzn):void");
    }

    public final void F(zzz zzz, zzn zzn) {
        String str = "null reference";
        Objects.requireNonNull(zzz, str);
        f.N(zzz.a);
        Objects.requireNonNull(zzz.c, str);
        f.N(zzz.c.b);
        U();
        P();
        if (!L(zzn)) {
            return;
        }
        if (zzn.h) {
            K().b0();
            try {
                G(zzn);
                zzz Z = K().Z(zzz.a, zzz.c.b);
                if (Z != null) {
                    this.j.d().m.c("Removing conditional user property", zzz.a, this.j.u().y(zzz.c.b));
                    K().a0(zzz.a, zzz.c.b);
                    if (Z.e) {
                        K().V(zzz.a, zzz.c.b);
                    }
                    zzaq zzaq = zzz.k;
                    if (zzaq != null) {
                        Bundle bundle = null;
                        zzap zzap = zzaq.b;
                        if (zzap != null) {
                            bundle = zzap.c();
                        }
                        Bundle bundle2 = bundle;
                        t9 t = this.j.t();
                        String str2 = zzz.a;
                        zzaq zzaq2 = zzz.k;
                        String str3 = zzaq2.a;
                        String str4 = Z.b;
                        long j = zzaq2.d;
                        boolean z = z7.a() && this.j.g.o(p.M0);
                        I(t.B(str2, str3, bundle2, str4, j, true, z), zzn);
                    }
                } else {
                    this.j.d().i.c("Conditional user property doesn't exist", q3.s(zzz.a), this.j.u().y(zzz.c.b));
                }
                K().s();
            } finally {
                K().e0();
            }
        } else {
            G(zzn);
        }
    }

    /* JADX WARNING: Removed duplicated region for block: B:127:0x02bf  */
    /* JADX WARNING: Removed duplicated region for block: B:130:0x02d1  */
    /* JADX WARNING: Removed duplicated region for block: B:155:0x0351  */
    /* JADX WARNING: Removed duplicated region for block: B:163:0x0375  */
    /* JADX WARNING: Removed duplicated region for block: B:166:0x0383  */
    /* JADX WARNING: Removed duplicated region for block: B:169:0x0391  */
    /* JADX WARNING: Removed duplicated region for block: B:179:0x03ce  */
    /* JADX WARNING: Removed duplicated region for block: B:182:0x03dc  */
    /* JADX WARNING: Removed duplicated region for block: B:185:0x03ea  */
    /* JADX WARNING: Removed duplicated region for block: B:193:0x0407  */
    public final c.e.a.b.f.b.a4 G(com.google.android.gms.measurement.internal.zzn r11) {
        /*
        r10 = this;
        r10.U();
        r10.P();
        r0 = "null reference";
        java.util.Objects.requireNonNull(r11, r0);
        r0 = r11.a;
        b.i.b.f.N(r0);
        r0 = r10.K();
        r1 = r11.a;
        r0 = r0.T(r1);
        r1 = c.e.a.b.f.b.d.c;
        r2 = c.e.a.b.e.c.v8.a();
        if (r2 == 0) goto L_0x003f;
    L_0x0022:
        r2 = r10.j;
        r2 = r2.g;
        r3 = c.e.a.b.f.b.p.J0;
        r2 = r2.o(r3);
        if (r2 == 0) goto L_0x003f;
    L_0x002e:
        r2 = r11.a;
        r2 = r10.c(r2);
        r3 = r11.w;
        r3 = c.e.a.b.f.b.d.b(r3);
        r2 = r2.h(r3);
        goto L_0x0040;
    L_0x003f:
        r2 = r1;
    L_0x0040:
        r3 = c.e.a.b.e.c.v8.a();
        if (r3 == 0) goto L_0x005c;
    L_0x0046:
        r3 = r10.j;
        r3 = r3.g;
        r4 = c.e.a.b.f.b.p.J0;
        r3 = r3.o(r4);
        if (r3 == 0) goto L_0x005c;
    L_0x0052:
        r3 = r2.j();
        if (r3 == 0) goto L_0x0059;
    L_0x0058:
        goto L_0x005c;
    L_0x0059:
        r3 = "";
        goto L_0x0064;
    L_0x005c:
        r3 = r10.i;
        r4 = r11.a;
        r3 = r3.t(r4);
    L_0x0064:
        r4 = c.e.a.b.e.c.o9.b;
        r4 = r4.q();
        r4 = (c.e.a.b.e.c.r9) r4;
        r4 = r4.q();
        r5 = 0;
        if (r4 == 0) goto L_0x01d6;
    L_0x0074:
        r4 = r10.j;
        r4 = r4.g;
        r7 = c.e.a.b.f.b.p.o0;
        r4 = r4.o(r7);
        if (r4 == 0) goto L_0x01d6;
    L_0x0080:
        if (r0 != 0) goto L_0x00c1;
    L_0x0082:
        r0 = new c.e.a.b.f.b.a4;
        r1 = r10.j;
        r4 = r11.a;
        r0.m1377init(r1, r4);
        r1 = c.e.a.b.e.c.v8.a();
        if (r1 == 0) goto L_0x00b5;
    L_0x0091:
        r1 = r10.j;
        r1 = r1.g;
        r4 = c.e.a.b.f.b.p.J0;
        r1 = r1.o(r4);
        if (r1 == 0) goto L_0x00b5;
    L_0x009d:
        r1 = r2.k();
        if (r1 == 0) goto L_0x00aa;
    L_0x00a3:
        r1 = r10.g(r2);
        r0.c(r1);
    L_0x00aa:
        r1 = r2.j();
        if (r1 == 0) goto L_0x0131;
    L_0x00b0:
        r0.x(r3);
        goto L_0x0131;
    L_0x00b5:
        r1 = r10.W();
        r0.c(r1);
        r0.x(r3);
        goto L_0x0131;
    L_0x00c1:
        r1 = c.e.a.b.e.c.v8.a();
        if (r1 == 0) goto L_0x00d9;
    L_0x00c7:
        r1 = r10.j;
        r1 = r1.g;
        r4 = c.e.a.b.f.b.p.J0;
        r1 = r1.o(r4);
        if (r1 == 0) goto L_0x00d9;
    L_0x00d3:
        r1 = r2.j();
        if (r1 == 0) goto L_0x0108;
    L_0x00d9:
        r1 = r0.E();
        r1 = r3.equals(r1);
        if (r1 != 0) goto L_0x0108;
    L_0x00e3:
        r0.x(r3);
        r1 = c.e.a.b.e.c.v8.a();
        if (r1 == 0) goto L_0x0100;
    L_0x00ec:
        r1 = r10.j;
        r1 = r1.g;
        r3 = c.e.a.b.f.b.p.J0;
        r1 = r1.o(r3);
        if (r1 == 0) goto L_0x0100;
    L_0x00f8:
        r1 = r10.g(r2);
        r0.c(r1);
        goto L_0x0131;
    L_0x0100:
        r1 = r10.W();
        r0.c(r1);
        goto L_0x0131;
    L_0x0108:
        r1 = c.e.a.b.e.c.v8.a();
        if (r1 == 0) goto L_0x0131;
    L_0x010e:
        r1 = r10.j;
        r1 = r1.g;
        r3 = c.e.a.b.f.b.p.J0;
        r1 = r1.o(r3);
        if (r1 == 0) goto L_0x0131;
    L_0x011a:
        r1 = r0.s();
        r1 = android.text.TextUtils.isEmpty(r1);
        if (r1 == 0) goto L_0x0131;
    L_0x0124:
        r1 = r2.k();
        if (r1 == 0) goto L_0x0131;
    L_0x012a:
        r1 = r10.g(r2);
        r0.c(r1);
    L_0x0131:
        r1 = r11.b;
        r0.m(r1);
        r1 = r11.r;
        r0.q(r1);
        r1 = c.e.a.b.e.c.fa.a();
        if (r1 == 0) goto L_0x0156;
    L_0x0141:
        r1 = r10.j;
        r1 = r1.g;
        r2 = r0.o();
        r3 = c.e.a.b.f.b.p.j0;
        r1 = r1.u(r2, r3);
        if (r1 == 0) goto L_0x0156;
    L_0x0151:
        r1 = r11.v;
        r0.u(r1);
    L_0x0156:
        r1 = r11.k;
        r1 = android.text.TextUtils.isEmpty(r1);
        if (r1 != 0) goto L_0x0163;
    L_0x015e:
        r1 = r11.k;
        r0.A(r1);
    L_0x0163:
        r1 = r11.e;
        r3 = (r1 > r5 ? 1 : (r1 == r5 ? 0 : -1));
        if (r3 == 0) goto L_0x016c;
    L_0x0169:
        r0.t(r1);
    L_0x016c:
        r1 = r11.c;
        r1 = android.text.TextUtils.isEmpty(r1);
        if (r1 != 0) goto L_0x0179;
    L_0x0174:
        r1 = r11.c;
        r0.D(r1);
    L_0x0179:
        r1 = r11.j;
        r0.p(r1);
        r1 = r11.d;
        if (r1 == 0) goto L_0x0185;
    L_0x0182:
        r0.G(r1);
    L_0x0185:
        r1 = r11.f;
        r0.w(r1);
        r1 = r11.h;
        r0.e(r1);
        r1 = r11.g;
        r1 = android.text.TextUtils.isEmpty(r1);
        if (r1 != 0) goto L_0x019c;
    L_0x0197:
        r1 = r11.g;
        r0.J(r1);
    L_0x019c:
        r1 = r10.j;
        r1 = r1.g;
        r2 = c.e.a.b.f.b.p.y0;
        r1 = r1.o(r2);
        if (r1 != 0) goto L_0x01ad;
    L_0x01a8:
        r1 = r11.l;
        r0.R(r1);
    L_0x01ad:
        r1 = r11.o;
        r0.n(r1);
        r1 = r11.p;
        r0.r(r1);
        r1 = r11.s;
        r0.b(r1);
        r1 = r11.t;
        r0.z(r1);
        r11 = r0.a;
        r11 = r11.a();
        r11.g();
        r11 = r0.E;
        if (r11 == 0) goto L_0x01d5;
    L_0x01ce:
        r11 = r10.K();
        r11.I(r0);
    L_0x01d5:
        return r0;
    L_0x01d6:
        r2 = c.e.a.b.e.c.v8.a();
        if (r2 == 0) goto L_0x01f8;
    L_0x01dc:
        r2 = r10.j;
        r2 = r2.g;
        r4 = c.e.a.b.f.b.p.J0;
        r2 = r2.o(r4);
        if (r2 == 0) goto L_0x01f8;
    L_0x01e8:
        r1 = r11.a;
        r1 = r10.c(r1);
        r2 = r11.w;
        r2 = c.e.a.b.f.b.d.b(r2);
        r1 = r1.h(r2);
    L_0x01f8:
        r2 = 1;
        if (r0 != 0) goto L_0x023a;
    L_0x01fb:
        r0 = new c.e.a.b.f.b.a4;
        r4 = r10.j;
        r7 = r11.a;
        r0.m1377init(r4, r7);
        r4 = c.e.a.b.e.c.v8.a();
        if (r4 == 0) goto L_0x022e;
    L_0x020a:
        r4 = r10.j;
        r4 = r4.g;
        r7 = c.e.a.b.f.b.p.J0;
        r4 = r4.o(r7);
        if (r4 == 0) goto L_0x022e;
    L_0x0216:
        r4 = r1.k();
        if (r4 == 0) goto L_0x0223;
    L_0x021c:
        r4 = r10.g(r1);
        r0.c(r4);
    L_0x0223:
        r1 = r1.j();
        if (r1 == 0) goto L_0x02b0;
    L_0x0229:
        r0.x(r3);
        goto L_0x02b0;
    L_0x022e:
        r1 = r10.W();
        r0.c(r1);
        r0.x(r3);
        goto L_0x02b0;
    L_0x023a:
        r4 = c.e.a.b.e.c.v8.a();
        if (r4 == 0) goto L_0x0252;
    L_0x0240:
        r4 = r10.j;
        r4 = r4.g;
        r7 = c.e.a.b.f.b.p.J0;
        r4 = r4.o(r7);
        if (r4 == 0) goto L_0x0252;
    L_0x024c:
        r4 = r1.j();
        if (r4 == 0) goto L_0x0287;
    L_0x0252:
        r4 = r0.E();
        r4 = r3.equals(r4);
        if (r4 != 0) goto L_0x0287;
    L_0x025c:
        r0.x(r3);
        r3 = c.e.a.b.e.c.v8.a();
        if (r3 == 0) goto L_0x027f;
    L_0x0265:
        r3 = r10.j;
        r3 = r3.g;
        r4 = c.e.a.b.f.b.p.J0;
        r3 = r3.o(r4);
        if (r3 == 0) goto L_0x027f;
    L_0x0271:
        r3 = r1.k();
        if (r3 == 0) goto L_0x02b0;
    L_0x0277:
        r1 = r10.g(r1);
        r0.c(r1);
        goto L_0x02b0;
    L_0x027f:
        r1 = r10.W();
        r0.c(r1);
        goto L_0x02b0;
    L_0x0287:
        r3 = c.e.a.b.e.c.v8.a();
        if (r3 == 0) goto L_0x02b2;
    L_0x028d:
        r3 = r10.j;
        r3 = r3.g;
        r4 = c.e.a.b.f.b.p.J0;
        r3 = r3.o(r4);
        if (r3 == 0) goto L_0x02b2;
    L_0x0299:
        r3 = r0.s();
        r3 = android.text.TextUtils.isEmpty(r3);
        if (r3 == 0) goto L_0x02b2;
    L_0x02a3:
        r3 = r1.k();
        if (r3 == 0) goto L_0x02b2;
    L_0x02a9:
        r1 = r10.g(r1);
        r0.c(r1);
    L_0x02b0:
        r1 = 1;
        goto L_0x02b3;
    L_0x02b2:
        r1 = 0;
    L_0x02b3:
        r3 = r11.b;
        r4 = r0.v();
        r3 = android.text.TextUtils.equals(r3, r4);
        if (r3 != 0) goto L_0x02c5;
    L_0x02bf:
        r1 = r11.b;
        r0.m(r1);
        r1 = 1;
    L_0x02c5:
        r3 = r11.r;
        r4 = r0.y();
        r3 = android.text.TextUtils.equals(r3, r4);
        if (r3 != 0) goto L_0x02d7;
    L_0x02d1:
        r1 = r11.r;
        r0.q(r1);
        r1 = 1;
    L_0x02d7:
        r3 = c.e.a.b.e.c.fa.a();
        if (r3 == 0) goto L_0x02ff;
    L_0x02dd:
        r3 = r10.j;
        r3 = r3.g;
        r4 = r0.o();
        r7 = c.e.a.b.f.b.p.j0;
        r3 = r3.u(r4, r7);
        if (r3 == 0) goto L_0x02ff;
    L_0x02ed:
        r3 = r11.v;
        r4 = r0.B();
        r3 = android.text.TextUtils.equals(r3, r4);
        if (r3 != 0) goto L_0x02ff;
    L_0x02f9:
        r1 = r11.v;
        r0.u(r1);
        r1 = 1;
    L_0x02ff:
        r3 = r11.k;
        r3 = android.text.TextUtils.isEmpty(r3);
        if (r3 != 0) goto L_0x0319;
    L_0x0307:
        r3 = r11.k;
        r4 = r0.H();
        r3 = r3.equals(r4);
        if (r3 != 0) goto L_0x0319;
    L_0x0313:
        r1 = r11.k;
        r0.A(r1);
        r1 = 1;
    L_0x0319:
        r3 = r11.e;
        r7 = (r3 > r5 ? 1 : (r3 == r5 ? 0 : -1));
        if (r7 == 0) goto L_0x032d;
    L_0x031f:
        r7 = r0.P();
        r9 = (r3 > r7 ? 1 : (r3 == r7 ? 0 : -1));
        if (r9 == 0) goto L_0x032d;
    L_0x0327:
        r3 = r11.e;
        r0.t(r3);
        r1 = 1;
    L_0x032d:
        r3 = r11.c;
        r3 = android.text.TextUtils.isEmpty(r3);
        if (r3 != 0) goto L_0x0347;
    L_0x0335:
        r3 = r11.c;
        r4 = r0.M();
        r3 = r3.equals(r4);
        if (r3 != 0) goto L_0x0347;
    L_0x0341:
        r1 = r11.c;
        r0.D(r1);
        r1 = 1;
    L_0x0347:
        r3 = r11.j;
        r7 = r0.N();
        r9 = (r3 > r7 ? 1 : (r3 == r7 ? 0 : -1));
        if (r9 == 0) goto L_0x0357;
    L_0x0351:
        r3 = r11.j;
        r0.p(r3);
        r1 = 1;
    L_0x0357:
        r3 = r11.d;
        if (r3 == 0) goto L_0x036b;
    L_0x035b:
        r4 = r0.O();
        r3 = r3.equals(r4);
        if (r3 != 0) goto L_0x036b;
    L_0x0365:
        r1 = r11.d;
        r0.G(r1);
        r1 = 1;
    L_0x036b:
        r3 = r11.f;
        r7 = r0.Q();
        r9 = (r3 > r7 ? 1 : (r3 == r7 ? 0 : -1));
        if (r9 == 0) goto L_0x037b;
    L_0x0375:
        r3 = r11.f;
        r0.w(r3);
        r1 = 1;
    L_0x037b:
        r3 = r11.h;
        r4 = r0.T();
        if (r3 == r4) goto L_0x0389;
    L_0x0383:
        r1 = r11.h;
        r0.e(r1);
        r1 = 1;
    L_0x0389:
        r3 = r11.g;
        r3 = android.text.TextUtils.isEmpty(r3);
        if (r3 != 0) goto L_0x03aa;
    L_0x0391:
        r3 = r11.g;
        r4 = r0.a;
        r4 = r4.a();
        r4.g();
        r4 = r0.D;
        r3 = r3.equals(r4);
        if (r3 != 0) goto L_0x03aa;
    L_0x03a4:
        r1 = r11.g;
        r0.J(r1);
        r1 = 1;
    L_0x03aa:
        r3 = r10.j;
        r3 = r3.g;
        r4 = c.e.a.b.f.b.p.y0;
        r3 = r3.o(r4);
        if (r3 != 0) goto L_0x03c6;
    L_0x03b6:
        r3 = r11.l;
        r7 = r0.g();
        r9 = (r3 > r7 ? 1 : (r3 == r7 ? 0 : -1));
        if (r9 == 0) goto L_0x03c6;
    L_0x03c0:
        r3 = r11.l;
        r0.R(r3);
        r1 = 1;
    L_0x03c6:
        r3 = r11.o;
        r4 = r0.h();
        if (r3 == r4) goto L_0x03d4;
    L_0x03ce:
        r1 = r11.o;
        r0.n(r1);
        r1 = 1;
    L_0x03d4:
        r3 = r11.p;
        r4 = r0.i();
        if (r3 == r4) goto L_0x03e2;
    L_0x03dc:
        r1 = r11.p;
        r0.r(r1);
        r1 = 1;
    L_0x03e2:
        r3 = r11.s;
        r4 = r0.j();
        if (r3 == r4) goto L_0x03f0;
    L_0x03ea:
        r1 = r11.s;
        r0.b(r1);
        r1 = 1;
    L_0x03f0:
        r3 = r11.t;
        r7 = (r3 > r5 ? 1 : (r3 == r5 ? 0 : -1));
        if (r7 == 0) goto L_0x0404;
    L_0x03f6:
        r5 = r0.S();
        r7 = (r3 > r5 ? 1 : (r3 == r5 ? 0 : -1));
        if (r7 == 0) goto L_0x0404;
    L_0x03fe:
        r3 = r11.t;
        r0.z(r3);
        goto L_0x0405;
    L_0x0404:
        r2 = r1;
    L_0x0405:
        if (r2 == 0) goto L_0x040e;
    L_0x0407:
        r11 = r10.K();
        r11.I(r0);
    L_0x040e:
        return r0;
        */
        throw new UnsupportedOperationException("Method not decompiled: c.e.a.b.f.b.k9.G(com.google.android.gms.measurement.internal.zzn):c.e.a.b.f.b.a4");
    }

    public final p4 H() {
        C(this.a);
        return this.a;
    }

    /* JADX WARNING: Removed duplicated region for block: B:105:0x02f3 A:{Catch:{ SQLiteException -> 0x0280, all -> 0x099c }} */
    /* JADX WARNING: Removed duplicated region for block: B:101:0x02ba A:{Catch:{ SQLiteException -> 0x0280, all -> 0x099c }} */
    /* JADX WARNING: Removed duplicated region for block: B:105:0x02f3 A:{Catch:{ SQLiteException -> 0x0280, all -> 0x099c }} */
    /* JADX WARNING: Removed duplicated region for block: B:105:0x02f3 A:{Catch:{ SQLiteException -> 0x0280, all -> 0x099c }} */
    /* JADX WARNING: Removed duplicated region for block: B:314:0x094d A:{Catch:{ SQLiteException -> 0x0280, all -> 0x099c }} */
    /* JADX WARNING: Removed duplicated region for block: B:314:0x094d A:{Catch:{ SQLiteException -> 0x0280, all -> 0x099c }} */
    /* JADX WARNING: Removed duplicated region for block: B:108:0x0302  */
    /* JADX WARNING: Removed duplicated region for block: B:54:0x0175 A:{Catch:{ SQLiteException -> 0x0280, all -> 0x099c }} */
    /* JADX WARNING: Removed duplicated region for block: B:118:0x037f  */
    /* JADX WARNING: Removed duplicated region for block: B:112:0x0352 A:{Catch:{ SQLiteException -> 0x0280, all -> 0x099c }} */
    /* JADX WARNING: Removed duplicated region for block: B:49:0x016d A:{Catch:{ SQLiteException -> 0x0280, all -> 0x099c }} */
    /* JADX WARNING: Removed duplicated region for block: B:54:0x0175 A:{Catch:{ SQLiteException -> 0x0280, all -> 0x099c }} */
    /* JADX WARNING: Removed duplicated region for block: B:108:0x0302  */
    /* JADX WARNING: Removed duplicated region for block: B:112:0x0352 A:{Catch:{ SQLiteException -> 0x0280, all -> 0x099c }} */
    /* JADX WARNING: Removed duplicated region for block: B:118:0x037f  */
    /* JADX WARNING: Missing block: B:309:0x0942, code skipped:
            if (r7.e < ((long) r1.j.c().s(r4.a))) goto L_0x0944;
     */
    public final void I(com.google.android.gms.measurement.internal.zzaq r27, com.google.android.gms.measurement.internal.zzn r28) {
        /*
        r26 = this;
        r1 = r26;
        r2 = r27;
        r3 = r28;
        r4 = "_sno";
        b.i.b.f.R(r28);
        r5 = r3.a;
        b.i.b.f.N(r5);
        r5 = java.lang.System.nanoTime();
        r26.U();
        r26.P();
        r15 = r3.a;
        r26.N();
        r7 = c.e.a.b.f.b.q9.O(r27, r28);
        if (r7 != 0) goto L_0x0026;
    L_0x0025:
        return;
    L_0x0026:
        r7 = r3.h;
        if (r7 != 0) goto L_0x002e;
    L_0x002a:
        r1.G(r3);
        return;
    L_0x002e:
        r7 = r26.H();
        r8 = r2.a;
        r7 = r7.x(r15, r8);
        r14 = "_err";
        r13 = 0;
        r18 = 1;
        if (r7 == 0) goto L_0x00e2;
    L_0x003f:
        r3 = r1.j;
        r3 = r3.d();
        r3 = r3.A();
        r4 = c.e.a.b.f.b.q3.s(r15);
        r5 = r1.j;
        r5 = r5.u();
        r6 = r2.a;
        r5 = r5.u(r6);
        r6 = "Dropping blacklisted event. appId";
        r3.c(r6, r4, r5);
        r3 = r26.H();
        r3 = r3.C(r15);
        if (r3 != 0) goto L_0x0075;
    L_0x0068:
        r3 = r26.H();
        r3 = r3.D(r15);
        if (r3 == 0) goto L_0x0073;
    L_0x0072:
        goto L_0x0075;
    L_0x0073:
        r18 = 0;
    L_0x0075:
        if (r18 != 0) goto L_0x0095;
    L_0x0077:
        r3 = r2.a;
        r3 = r14.equals(r3);
        if (r3 != 0) goto L_0x0095;
    L_0x007f:
        r3 = r1.j;
        r7 = r3.t();
        r8 = r1.z;
        r10 = 11;
        r12 = r2.a;
        r2 = 0;
        r11 = "_ev";
        r9 = r15;
        r3 = r13;
        r13 = r2;
        r7.S(r8, r9, r10, r11, r12, r13);
        goto L_0x0096;
    L_0x0095:
        r3 = r13;
    L_0x0096:
        if (r18 == 0) goto L_0x00e1;
    L_0x0098:
        r2 = r26.K();
        r2 = r2.T(r15);
        if (r2 == 0) goto L_0x00e1;
    L_0x00a2:
        r4 = r2.W();
        r6 = r2.V();
        r4 = java.lang.Math.max(r4, r6);
        r6 = r1.j;
        r6 = r6.b();
        r6 = (c.e.a.b.b.j.c) r6;
        r6 = r6.a();
        r6 = r6 - r4;
        r4 = java.lang.Math.abs(r6);
        r6 = c.e.a.b.f.b.p.z;
        r3 = r6.a(r3);
        r3 = (java.lang.Long) r3;
        r6 = r3.longValue();
        r3 = (r4 > r6 ? 1 : (r4 == r6 ? 0 : -1));
        if (r3 <= 0) goto L_0x00e1;
    L_0x00cf:
        r3 = r1.j;
        r3 = r3.d();
        r3 = r3.C();
        r4 = "Fetching config for blacklisted app";
        r3.a(r4);
        r1.n(r2);
    L_0x00e1:
        return;
    L_0x00e2:
        r7 = c.e.a.b.e.c.q8.a();
        if (r7 == 0) goto L_0x0111;
    L_0x00e8:
        r7 = r1.j;
        r7 = r7.c();
        r8 = c.e.a.b.f.b.p.w0;
        r7 = r7.o(r8);
        if (r7 == 0) goto L_0x0111;
    L_0x00f6:
        r2 = c.e.a.b.f.b.u3.b(r27);
        r7 = r1.j;
        r7 = r7.t();
        r8 = r1.j;
        r8 = r8.c();
        r8 = r8.m(r15);
        r7.Q(r2, r8);
        r2 = r2.a();
    L_0x0111:
        r7 = r1.j;
        r7 = r7.d();
        r8 = 2;
        r7 = r7.x(r8);
        if (r7 == 0) goto L_0x0137;
    L_0x011e:
        r7 = r1.j;
        r7 = r7.d();
        r7 = r7.D();
        r9 = r1.j;
        r9 = r9.u();
        r9 = r9.t(r2);
        r10 = "Logging event";
        r7.b(r10, r9);
    L_0x0137:
        r7 = r26.K();
        r7.b0();
        r1.G(r3);	 Catch:{ all -> 0x099c }
        r7 = "ecommerce_purchase";
        r9 = r2.a;	 Catch:{ all -> 0x099c }
        r7 = r7.equals(r9);	 Catch:{ all -> 0x099c }
        r9 = "refund";
        if (r7 != 0) goto L_0x0162;
    L_0x014d:
        r7 = "purchase";
        r10 = r2.a;	 Catch:{ all -> 0x099c }
        r7 = r7.equals(r10);	 Catch:{ all -> 0x099c }
        if (r7 != 0) goto L_0x0162;
    L_0x0157:
        r7 = r2.a;	 Catch:{ all -> 0x099c }
        r7 = r9.equals(r7);	 Catch:{ all -> 0x099c }
        if (r7 == 0) goto L_0x0160;
    L_0x015f:
        goto L_0x0162;
    L_0x0160:
        r7 = 0;
        goto L_0x0163;
    L_0x0162:
        r7 = 1;
    L_0x0163:
        r10 = "_iap";
        r12 = r2.a;	 Catch:{ all -> 0x099c }
        r10 = r10.equals(r12);	 Catch:{ all -> 0x099c }
        if (r10 != 0) goto L_0x0172;
    L_0x016d:
        if (r7 == 0) goto L_0x0170;
    L_0x016f:
        goto L_0x0172;
    L_0x0170:
        r10 = 0;
        goto L_0x0173;
    L_0x0172:
        r10 = 1;
    L_0x0173:
        if (r10 == 0) goto L_0x0302;
    L_0x0175:
        r10 = r2.b;	 Catch:{ all -> 0x099c }
        r12 = "currency";
        r10 = r10.f(r12);	 Catch:{ all -> 0x099c }
        r12 = "value";
        if (r7 == 0) goto L_0x01dc;
    L_0x0181:
        r7 = r2.b;	 Catch:{ all -> 0x099c }
        r7 = r7.e(r12);	 Catch:{ all -> 0x099c }
        r16 = r7.doubleValue();	 Catch:{ all -> 0x099c }
        r19 = 4696837146684686336; // 0x412e848000000000 float:0.0 double:1000000.0;
        r16 = r16 * r19;
        r21 = 0;
        r7 = (r16 > r21 ? 1 : (r16 == r21 ? 0 : -1));
        if (r7 != 0) goto L_0x01a5;
    L_0x0198:
        r7 = r2.b;	 Catch:{ all -> 0x099c }
        r7 = r7.d(r12);	 Catch:{ all -> 0x099c }
        r11 = r7.longValue();	 Catch:{ all -> 0x099c }
        r11 = (double) r11;	 Catch:{ all -> 0x099c }
        r16 = r11 * r19;
    L_0x01a5:
        r11 = 4890909195324358656; // 0x43e0000000000000 float:0.0 double:9.223372036854776E18;
        r7 = (r16 > r11 ? 1 : (r16 == r11 ? 0 : -1));
        if (r7 > 0) goto L_0x01bf;
    L_0x01ab:
        r11 = -4332462841530417152; // 0xc3e0000000000000 float:0.0 double:-9.223372036854776E18;
        r7 = (r16 > r11 ? 1 : (r16 == r11 ? 0 : -1));
        if (r7 < 0) goto L_0x01bf;
    L_0x01b1:
        r11 = java.lang.Math.round(r16);	 Catch:{ all -> 0x099c }
        r7 = r2.a;	 Catch:{ all -> 0x099c }
        r7 = r9.equals(r7);	 Catch:{ all -> 0x099c }
        if (r7 == 0) goto L_0x01e6;
    L_0x01bd:
        r11 = -r11;
        goto L_0x01e6;
    L_0x01bf:
        r7 = r1.j;	 Catch:{ all -> 0x099c }
        r7 = r7.d();	 Catch:{ all -> 0x099c }
        r7 = r7.A();	 Catch:{ all -> 0x099c }
        r8 = "Data lost. Currency value is too big. appId";
        r9 = c.e.a.b.f.b.q3.s(r15);	 Catch:{ all -> 0x099c }
        r10 = java.lang.Double.valueOf(r16);	 Catch:{ all -> 0x099c }
        r7.c(r8, r9, r10);	 Catch:{ all -> 0x099c }
        r22 = r5;
        r5 = 0;
        r11 = 0;
        goto L_0x02f1;
    L_0x01dc:
        r7 = r2.b;	 Catch:{ all -> 0x099c }
        r7 = r7.d(r12);	 Catch:{ all -> 0x099c }
        r11 = r7.longValue();	 Catch:{ all -> 0x099c }
    L_0x01e6:
        r7 = android.text.TextUtils.isEmpty(r10);	 Catch:{ all -> 0x099c }
        if (r7 != 0) goto L_0x02ed;
    L_0x01ec:
        r7 = java.util.Locale.US;	 Catch:{ all -> 0x099c }
        r7 = r10.toUpperCase(r7);	 Catch:{ all -> 0x099c }
        r9 = "[A-Z]{3}";
        r9 = r7.matches(r9);	 Catch:{ all -> 0x099c }
        if (r9 == 0) goto L_0x02ed;
    L_0x01fa:
        r9 = "_ltv_";
        r10 = r7.length();	 Catch:{ all -> 0x099c }
        if (r10 == 0) goto L_0x0207;
    L_0x0202:
        r7 = r9.concat(r7);	 Catch:{ all -> 0x099c }
        goto L_0x020c;
    L_0x0207:
        r7 = new java.lang.String;	 Catch:{ all -> 0x099c }
        r7.<init>(r9);	 Catch:{ all -> 0x099c }
    L_0x020c:
        r10 = r7;
        r7 = r26.K();	 Catch:{ all -> 0x099c }
        r7 = r7.Y(r15, r10);	 Catch:{ all -> 0x099c }
        if (r7 == 0) goto L_0x0248;
    L_0x0217:
        r7 = r7.e;	 Catch:{ all -> 0x099c }
        r9 = r7 instanceof java.lang.Long;	 Catch:{ all -> 0x099c }
        if (r9 != 0) goto L_0x021e;
    L_0x021d:
        goto L_0x0248;
    L_0x021e:
        r7 = (java.lang.Long) r7;	 Catch:{ all -> 0x099c }
        r7 = r7.longValue();	 Catch:{ all -> 0x099c }
        r16 = new c.e.a.b.f.b.u9;	 Catch:{ all -> 0x099c }
        r9 = r2.c;	 Catch:{ all -> 0x099c }
        r13 = r1.j;	 Catch:{ all -> 0x099c }
        r13 = r13.b();	 Catch:{ all -> 0x099c }
        r13 = (c.e.a.b.b.j.c) r13;
        r19 = r13.a();	 Catch:{ all -> 0x099c }
        r7 = r7 + r11;
        r13 = java.lang.Long.valueOf(r7);	 Catch:{ all -> 0x099c }
        r7 = r16;
        r8 = r15;
        r22 = r5;
        r5 = 0;
        r11 = r19;
        r6 = 0;
        r7.m1502init(r8, r9, r10, r11, r13);	 Catch:{ all -> 0x099c }
    L_0x0245:
        r6 = r16;
        goto L_0x02b0;
    L_0x0248:
        r22 = r5;
        r6 = r13;
        r5 = 0;
        r7 = r26.K();	 Catch:{ all -> 0x099c }
        r9 = r1.j;	 Catch:{ all -> 0x099c }
        r9 = r9.c();	 Catch:{ all -> 0x099c }
        r13 = c.e.a.b.f.b.p.E;	 Catch:{ all -> 0x099c }
        r9 = r9.q(r15, r13);	 Catch:{ all -> 0x099c }
        r9 = r9 + -1;
        b.i.b.f.N(r15);	 Catch:{ all -> 0x099c }
        r7.g();	 Catch:{ all -> 0x099c }
        r7.n();	 Catch:{ all -> 0x099c }
        r13 = r7.t();	 Catch:{ SQLiteException -> 0x0280 }
        r6 = "delete from user_attributes where app_id=? and name in (select name from user_attributes where app_id=? and name like '_ltv_%' order by set_timestamp desc limit ?,10);";
        r8 = 3;
        r8 = new java.lang.String[r8];	 Catch:{ SQLiteException -> 0x0280 }
        r8[r5] = r15;	 Catch:{ SQLiteException -> 0x0280 }
        r8[r18] = r15;	 Catch:{ SQLiteException -> 0x0280 }
        r9 = java.lang.String.valueOf(r9);	 Catch:{ SQLiteException -> 0x0280 }
        r16 = 2;
        r8[r16] = r9;	 Catch:{ SQLiteException -> 0x0280 }
        r13.execSQL(r6, r8);	 Catch:{ SQLiteException -> 0x0280 }
        goto L_0x0293;
    L_0x0280:
        r0 = move-exception;
        r6 = r0;
        r7 = r7.d();	 Catch:{ all -> 0x099c }
        r7 = r7.z();	 Catch:{ all -> 0x099c }
        r8 = "Error pruning currencies. appId";
        r9 = c.e.a.b.f.b.q3.s(r15);	 Catch:{ all -> 0x099c }
        r7.c(r8, r9, r6);	 Catch:{ all -> 0x099c }
    L_0x0293:
        r16 = new c.e.a.b.f.b.u9;	 Catch:{ all -> 0x099c }
        r9 = r2.c;	 Catch:{ all -> 0x099c }
        r6 = r1.j;	 Catch:{ all -> 0x099c }
        r6 = r6.b();	 Catch:{ all -> 0x099c }
        r6 = (c.e.a.b.b.j.c) r6;
        r20 = r6.a();	 Catch:{ all -> 0x099c }
        r13 = java.lang.Long.valueOf(r11);	 Catch:{ all -> 0x099c }
        r7 = r16;
        r8 = r15;
        r11 = r20;
        r7.m1502init(r8, r9, r10, r11, r13);	 Catch:{ all -> 0x099c }
        goto L_0x0245;
    L_0x02b0:
        r7 = r26.K();	 Catch:{ all -> 0x099c }
        r7 = r7.M(r6);	 Catch:{ all -> 0x099c }
        if (r7 != 0) goto L_0x02f0;
    L_0x02ba:
        r7 = r1.j;	 Catch:{ all -> 0x099c }
        r7 = r7.d();	 Catch:{ all -> 0x099c }
        r7 = r7.z();	 Catch:{ all -> 0x099c }
        r8 = "Too many unique user properties are set. Ignoring user property. appId";
        r9 = c.e.a.b.f.b.q3.s(r15);	 Catch:{ all -> 0x099c }
        r10 = r1.j;	 Catch:{ all -> 0x099c }
        r10 = r10.u();	 Catch:{ all -> 0x099c }
        r11 = r6.c;	 Catch:{ all -> 0x099c }
        r10 = r10.y(r11);	 Catch:{ all -> 0x099c }
        r6 = r6.e;	 Catch:{ all -> 0x099c }
        r7.d(r8, r9, r10, r6);	 Catch:{ all -> 0x099c }
        r6 = r1.j;	 Catch:{ all -> 0x099c }
        r7 = r6.t();	 Catch:{ all -> 0x099c }
        r8 = r1.z;	 Catch:{ all -> 0x099c }
        r10 = 9;
        r11 = 0;
        r12 = 0;
        r13 = 0;
        r9 = r15;
        r7.S(r8, r9, r10, r11, r12, r13);	 Catch:{ all -> 0x099c }
        goto L_0x02f0;
    L_0x02ed:
        r22 = r5;
        r5 = 0;
    L_0x02f0:
        r11 = 1;
    L_0x02f1:
        if (r11 != 0) goto L_0x0305;
    L_0x02f3:
        r2 = r26.K();	 Catch:{ all -> 0x099c }
        r2.s();	 Catch:{ all -> 0x099c }
        r2 = r26.K();
        r2.e0();
        return;
    L_0x0302:
        r22 = r5;
        r5 = 0;
    L_0x0305:
        r6 = r2.a;	 Catch:{ all -> 0x099c }
        r6 = c.e.a.b.f.b.t9.X(r6);	 Catch:{ all -> 0x099c }
        r7 = r2.a;	 Catch:{ all -> 0x099c }
        r20 = r14.equals(r7);	 Catch:{ all -> 0x099c }
        r7 = r1.j;	 Catch:{ all -> 0x099c }
        r7.t();	 Catch:{ all -> 0x099c }
        r7 = r2.b;	 Catch:{ all -> 0x099c }
        r7 = c.e.a.b.f.b.t9.v(r7);	 Catch:{ all -> 0x099c }
        r24 = 1;
        r11 = r7 + r24;
        r7 = r26.K();	 Catch:{ all -> 0x099c }
        r8 = r26.V();	 Catch:{ all -> 0x099c }
        r13 = 1;
        r16 = 0;
        r17 = 0;
        r10 = r15;
        r14 = r6;
        r27 = r15;
        r15 = r16;
        r16 = r20;
        r7 = r7.x(r8, r10, r11, r13, r14, r15, r16, r17);	 Catch:{ all -> 0x099c }
        r8 = r7.b;	 Catch:{ all -> 0x099c }
        r10 = c.e.a.b.f.b.p.k;	 Catch:{ all -> 0x099c }
        r11 = 0;
        r10 = r10.a(r11);	 Catch:{ all -> 0x099c }
        r10 = (java.lang.Integer) r10;	 Catch:{ all -> 0x099c }
        r10 = r10.intValue();	 Catch:{ all -> 0x099c }
        r10 = (long) r10;	 Catch:{ all -> 0x099c }
        r8 = r8 - r10;
        r10 = 1000; // 0x3e8 float:1.401E-42 double:4.94E-321;
        r14 = 0;
        r12 = (r8 > r14 ? 1 : (r8 == r14 ? 0 : -1));
        if (r12 <= 0) goto L_0x037f;
    L_0x0352:
        r8 = r8 % r10;
        r2 = (r8 > r24 ? 1 : (r8 == r24 ? 0 : -1));
        if (r2 != 0) goto L_0x0370;
    L_0x0357:
        r2 = r1.j;	 Catch:{ all -> 0x099c }
        r2 = r2.d();	 Catch:{ all -> 0x099c }
        r2 = r2.z();	 Catch:{ all -> 0x099c }
        r3 = "Data loss. Too many events logged. appId, count";
        r4 = c.e.a.b.f.b.q3.s(r27);	 Catch:{ all -> 0x099c }
        r5 = r7.b;	 Catch:{ all -> 0x099c }
        r5 = java.lang.Long.valueOf(r5);	 Catch:{ all -> 0x099c }
        r2.c(r3, r4, r5);	 Catch:{ all -> 0x099c }
    L_0x0370:
        r2 = r26.K();	 Catch:{ all -> 0x099c }
        r2.s();	 Catch:{ all -> 0x099c }
        r2 = r26.K();
        r2.e0();
        return;
    L_0x037f:
        if (r6 == 0) goto L_0x03d7;
    L_0x0381:
        r8 = r7.a;	 Catch:{ all -> 0x099c }
        r12 = c.e.a.b.f.b.p.m;	 Catch:{ all -> 0x099c }
        r13 = 0;
        r12 = r12.a(r13);	 Catch:{ all -> 0x099c }
        r12 = (java.lang.Integer) r12;	 Catch:{ all -> 0x099c }
        r12 = r12.intValue();	 Catch:{ all -> 0x099c }
        r12 = (long) r12;	 Catch:{ all -> 0x099c }
        r8 = r8 - r12;
        r12 = (r8 > r14 ? 1 : (r8 == r14 ? 0 : -1));
        if (r12 <= 0) goto L_0x03d7;
    L_0x0396:
        r8 = r8 % r10;
        r3 = (r8 > r24 ? 1 : (r8 == r24 ? 0 : -1));
        if (r3 != 0) goto L_0x03b4;
    L_0x039b:
        r3 = r1.j;	 Catch:{ all -> 0x099c }
        r3 = r3.d();	 Catch:{ all -> 0x099c }
        r3 = r3.z();	 Catch:{ all -> 0x099c }
        r4 = "Data loss. Too many public events logged. appId, count";
        r5 = c.e.a.b.f.b.q3.s(r27);	 Catch:{ all -> 0x099c }
        r6 = r7.a;	 Catch:{ all -> 0x099c }
        r6 = java.lang.Long.valueOf(r6);	 Catch:{ all -> 0x099c }
        r3.c(r4, r5, r6);	 Catch:{ all -> 0x099c }
    L_0x03b4:
        r3 = r1.j;	 Catch:{ all -> 0x099c }
        r7 = r3.t();	 Catch:{ all -> 0x099c }
        r8 = r1.z;	 Catch:{ all -> 0x099c }
        r10 = 16;
        r11 = "_ev";
        r12 = r2.a;	 Catch:{ all -> 0x099c }
        r13 = 0;
        r9 = r27;
        r7.S(r8, r9, r10, r11, r12, r13);	 Catch:{ all -> 0x099c }
        r2 = r26.K();	 Catch:{ all -> 0x099c }
        r2.s();	 Catch:{ all -> 0x099c }
        r2 = r26.K();
        r2.e0();
        return;
    L_0x03d7:
        if (r20 == 0) goto L_0x0426;
    L_0x03d9:
        r8 = r7.d;	 Catch:{ all -> 0x099c }
        r10 = r1.j;	 Catch:{ all -> 0x099c }
        r10 = r10.c();	 Catch:{ all -> 0x099c }
        r11 = r3.a;	 Catch:{ all -> 0x099c }
        r12 = c.e.a.b.f.b.p.l;	 Catch:{ all -> 0x099c }
        r10 = r10.q(r11, r12);	 Catch:{ all -> 0x099c }
        r11 = 1000000; // 0xf4240 float:1.401298E-39 double:4.940656E-318;
        r10 = java.lang.Math.min(r11, r10);	 Catch:{ all -> 0x099c }
        r10 = java.lang.Math.max(r5, r10);	 Catch:{ all -> 0x099c }
        r10 = (long) r10;	 Catch:{ all -> 0x099c }
        r8 = r8 - r10;
        r10 = (r8 > r14 ? 1 : (r8 == r14 ? 0 : -1));
        if (r10 <= 0) goto L_0x0426;
    L_0x03fa:
        r2 = (r8 > r24 ? 1 : (r8 == r24 ? 0 : -1));
        if (r2 != 0) goto L_0x0417;
    L_0x03fe:
        r2 = r1.j;	 Catch:{ all -> 0x099c }
        r2 = r2.d();	 Catch:{ all -> 0x099c }
        r2 = r2.z();	 Catch:{ all -> 0x099c }
        r3 = "Too many error events logged. appId, count";
        r4 = c.e.a.b.f.b.q3.s(r27);	 Catch:{ all -> 0x099c }
        r5 = r7.d;	 Catch:{ all -> 0x099c }
        r5 = java.lang.Long.valueOf(r5);	 Catch:{ all -> 0x099c }
        r2.c(r3, r4, r5);	 Catch:{ all -> 0x099c }
    L_0x0417:
        r2 = r26.K();	 Catch:{ all -> 0x099c }
        r2.s();	 Catch:{ all -> 0x099c }
        r2 = r26.K();
        r2.e0();
        return;
    L_0x0426:
        r7 = r2.b;	 Catch:{ all -> 0x099c }
        r12 = r7.c();	 Catch:{ all -> 0x099c }
        r7 = r1.j;	 Catch:{ all -> 0x099c }
        r7 = r7.t();	 Catch:{ all -> 0x099c }
        r8 = "_o";
        r9 = r2.c;	 Catch:{ all -> 0x099c }
        r7.I(r12, r8, r9);	 Catch:{ all -> 0x099c }
        r7 = r1.j;	 Catch:{ all -> 0x099c }
        r7 = r7.t();	 Catch:{ all -> 0x099c }
        r13 = r27;
        r7 = r7.s0(r13);	 Catch:{ all -> 0x099c }
        r11 = "_r";
        if (r7 == 0) goto L_0x0465;
    L_0x0449:
        r7 = r1.j;	 Catch:{ all -> 0x099c }
        r7 = r7.t();	 Catch:{ all -> 0x099c }
        r8 = "_dbg";
        r9 = java.lang.Long.valueOf(r24);	 Catch:{ all -> 0x099c }
        r7.I(r12, r8, r9);	 Catch:{ all -> 0x099c }
        r7 = r1.j;	 Catch:{ all -> 0x099c }
        r7 = r7.t();	 Catch:{ all -> 0x099c }
        r8 = java.lang.Long.valueOf(r24);	 Catch:{ all -> 0x099c }
        r7.I(r12, r11, r8);	 Catch:{ all -> 0x099c }
    L_0x0465:
        r7 = "_s";
        r8 = r2.a;	 Catch:{ all -> 0x099c }
        r7 = r7.equals(r8);	 Catch:{ all -> 0x099c }
        if (r7 == 0) goto L_0x048c;
    L_0x046f:
        r7 = r26.K();	 Catch:{ all -> 0x099c }
        r8 = r3.a;	 Catch:{ all -> 0x099c }
        r7 = r7.Y(r8, r4);	 Catch:{ all -> 0x099c }
        if (r7 == 0) goto L_0x048c;
    L_0x047b:
        r8 = r7.e;	 Catch:{ all -> 0x099c }
        r8 = r8 instanceof java.lang.Long;	 Catch:{ all -> 0x099c }
        if (r8 == 0) goto L_0x048c;
    L_0x0481:
        r8 = r1.j;	 Catch:{ all -> 0x099c }
        r8 = r8.t();	 Catch:{ all -> 0x099c }
        r7 = r7.e;	 Catch:{ all -> 0x099c }
        r8.I(r12, r4, r7);	 Catch:{ all -> 0x099c }
    L_0x048c:
        r4 = r26.K();	 Catch:{ all -> 0x099c }
        r7 = r4.X(r13);	 Catch:{ all -> 0x099c }
        r4 = (r7 > r14 ? 1 : (r7 == r14 ? 0 : -1));
        if (r4 <= 0) goto L_0x04af;
    L_0x0498:
        r4 = r1.j;	 Catch:{ all -> 0x099c }
        r4 = r4.d();	 Catch:{ all -> 0x099c }
        r4 = r4.A();	 Catch:{ all -> 0x099c }
        r9 = "Data lost. Too many events stored on disk, deleted. appId";
        r10 = c.e.a.b.f.b.q3.s(r13);	 Catch:{ all -> 0x099c }
        r7 = java.lang.Long.valueOf(r7);	 Catch:{ all -> 0x099c }
        r4.c(r9, r10, r7);	 Catch:{ all -> 0x099c }
    L_0x04af:
        r4 = new c.e.a.b.f.b.m;	 Catch:{ all -> 0x099c }
        r8 = r1.j;	 Catch:{ all -> 0x099c }
        r9 = r2.c;	 Catch:{ all -> 0x099c }
        r10 = r2.a;	 Catch:{ all -> 0x099c }
        r14 = r2.d;	 Catch:{ all -> 0x099c }
        r20 = 0;
        r7 = r4;
        r2 = r10;
        r10 = r13;
        r5 = r11;
        r11 = r2;
        r24 = r12;
        r2 = r13;
        r12 = r14;
        r14 = r20;
        r16 = r24;
        r7.m1459init(r8, r9, r10, r11, r12, r14, r16);	 Catch:{ all -> 0x099c }
        r7 = r26.K();	 Catch:{ all -> 0x099c }
        r8 = r4.b;	 Catch:{ all -> 0x099c }
        r7 = r7.z(r2, r8);	 Catch:{ all -> 0x099c }
        if (r7 != 0) goto L_0x0540;
    L_0x04d7:
        r7 = r26.K();	 Catch:{ all -> 0x099c }
        r7 = r7.f0(r2);	 Catch:{ all -> 0x099c }
        r9 = r1.j;	 Catch:{ all -> 0x099c }
        r9 = r9.c();	 Catch:{ all -> 0x099c }
        r9 = r9.p(r2);	 Catch:{ all -> 0x099c }
        r9 = (long) r9;	 Catch:{ all -> 0x099c }
        r11 = (r7 > r9 ? 1 : (r7 == r9 ? 0 : -1));
        if (r11 < 0) goto L_0x0536;
    L_0x04ee:
        if (r6 == 0) goto L_0x0536;
    L_0x04f0:
        r3 = r1.j;	 Catch:{ all -> 0x099c }
        r3 = r3.d();	 Catch:{ all -> 0x099c }
        r3 = r3.z();	 Catch:{ all -> 0x099c }
        r5 = "Too many event names used, ignoring event. appId, name, supported count";
        r6 = c.e.a.b.f.b.q3.s(r2);	 Catch:{ all -> 0x099c }
        r7 = r1.j;	 Catch:{ all -> 0x099c }
        r7 = r7.u();	 Catch:{ all -> 0x099c }
        r4 = r4.b;	 Catch:{ all -> 0x099c }
        r4 = r7.u(r4);	 Catch:{ all -> 0x099c }
        r7 = r1.j;	 Catch:{ all -> 0x099c }
        r7 = r7.c();	 Catch:{ all -> 0x099c }
        r7 = r7.p(r2);	 Catch:{ all -> 0x099c }
        r7 = java.lang.Integer.valueOf(r7);	 Catch:{ all -> 0x099c }
        r3.d(r5, r6, r4, r7);	 Catch:{ all -> 0x099c }
        r3 = r1.j;	 Catch:{ all -> 0x099c }
        r7 = r3.t();	 Catch:{ all -> 0x099c }
        r8 = r1.z;	 Catch:{ all -> 0x099c }
        r10 = 8;
        r11 = 0;
        r12 = 0;
        r13 = 0;
        r9 = r2;
        r7.S(r8, r9, r10, r11, r12, r13);	 Catch:{ all -> 0x099c }
        r2 = r26.K();
        r2.e0();
        return;
    L_0x0536:
        r6 = new c.e.a.b.f.b.l;	 Catch:{ all -> 0x099c }
        r7 = r4.b;	 Catch:{ all -> 0x099c }
        r8 = r4.d;	 Catch:{ all -> 0x099c }
        r6.m1452init(r2, r7, r8);	 Catch:{ all -> 0x099c }
        goto L_0x054e;
    L_0x0540:
        r2 = r1.j;	 Catch:{ all -> 0x099c }
        r8 = r7.f;	 Catch:{ all -> 0x099c }
        r4 = r4.a(r2, r8);	 Catch:{ all -> 0x099c }
        r8 = r4.d;	 Catch:{ all -> 0x099c }
        r6 = r7.a(r8);	 Catch:{ all -> 0x099c }
    L_0x054e:
        r2 = r26.K();	 Catch:{ all -> 0x099c }
        r2.H(r6);	 Catch:{ all -> 0x099c }
        r26.U();	 Catch:{ all -> 0x099c }
        r26.P();	 Catch:{ all -> 0x099c }
        b.i.b.f.R(r4);	 Catch:{ all -> 0x099c }
        b.i.b.f.R(r28);	 Catch:{ all -> 0x099c }
        r2 = r4.a;	 Catch:{ all -> 0x099c }
        b.i.b.f.N(r2);	 Catch:{ all -> 0x099c }
        r2 = r4.a;	 Catch:{ all -> 0x099c }
        r6 = r3.a;	 Catch:{ all -> 0x099c }
        r2 = r2.equals(r6);	 Catch:{ all -> 0x099c }
        b.i.b.f.J(r2);	 Catch:{ all -> 0x099c }
        r2 = c.e.a.b.e.c.e1.u0();	 Catch:{ all -> 0x099c }
        r2.m();	 Catch:{ all -> 0x099c }
        r6 = "android";
        r2.u(r6);	 Catch:{ all -> 0x099c }
        r6 = r3.a;	 Catch:{ all -> 0x099c }
        r6 = android.text.TextUtils.isEmpty(r6);	 Catch:{ all -> 0x099c }
        if (r6 != 0) goto L_0x058a;
    L_0x0585:
        r6 = r3.a;	 Catch:{ all -> 0x099c }
        r2.S(r6);	 Catch:{ all -> 0x099c }
    L_0x058a:
        r6 = r3.d;	 Catch:{ all -> 0x099c }
        r6 = android.text.TextUtils.isEmpty(r6);	 Catch:{ all -> 0x099c }
        if (r6 != 0) goto L_0x0597;
    L_0x0592:
        r6 = r3.d;	 Catch:{ all -> 0x099c }
        r2.O(r6);	 Catch:{ all -> 0x099c }
    L_0x0597:
        r6 = r3.c;	 Catch:{ all -> 0x099c }
        r6 = android.text.TextUtils.isEmpty(r6);	 Catch:{ all -> 0x099c }
        if (r6 != 0) goto L_0x05a4;
    L_0x059f:
        r6 = r3.c;	 Catch:{ all -> 0x099c }
        r2.V(r6);	 Catch:{ all -> 0x099c }
    L_0x05a4:
        r6 = r3.j;	 Catch:{ all -> 0x099c }
        r8 = -2147483648; // 0xffffffff80000000 float:-0.0 double:NaN;
        r10 = (r6 > r8 ? 1 : (r6 == r8 ? 0 : -1));
        if (r10 == 0) goto L_0x05b1;
    L_0x05ad:
        r7 = (int) r6;	 Catch:{ all -> 0x099c }
        r2.X(r7);	 Catch:{ all -> 0x099c }
    L_0x05b1:
        r6 = r3.e;	 Catch:{ all -> 0x099c }
        r2.R(r6);	 Catch:{ all -> 0x099c }
        r6 = r3.b;	 Catch:{ all -> 0x099c }
        r6 = android.text.TextUtils.isEmpty(r6);	 Catch:{ all -> 0x099c }
        if (r6 != 0) goto L_0x05c3;
    L_0x05be:
        r6 = r3.b;	 Catch:{ all -> 0x099c }
        r2.h0(r6);	 Catch:{ all -> 0x099c }
    L_0x05c3:
        r6 = c.e.a.b.e.c.v8.a();	 Catch:{ all -> 0x099c }
        if (r6 == 0) goto L_0x05ee;
    L_0x05c9:
        r6 = r1.j;	 Catch:{ all -> 0x099c }
        r6 = r6.c();	 Catch:{ all -> 0x099c }
        r7 = c.e.a.b.f.b.p.J0;	 Catch:{ all -> 0x099c }
        r6 = r6.o(r7);	 Catch:{ all -> 0x099c }
        if (r6 == 0) goto L_0x05ee;
    L_0x05d7:
        r6 = r3.a;	 Catch:{ all -> 0x099c }
        r6 = r1.c(r6);	 Catch:{ all -> 0x099c }
        r7 = r3.w;	 Catch:{ all -> 0x099c }
        r7 = c.e.a.b.f.b.d.b(r7);	 Catch:{ all -> 0x099c }
        r6 = r6.h(r7);	 Catch:{ all -> 0x099c }
        r6 = r6.d();	 Catch:{ all -> 0x099c }
        r2.r0(r6);	 Catch:{ all -> 0x099c }
    L_0x05ee:
        r6 = c.e.a.b.e.c.fa.a();	 Catch:{ all -> 0x099c }
        if (r6 == 0) goto L_0x063d;
    L_0x05f4:
        r6 = r1.j;	 Catch:{ all -> 0x099c }
        r6 = r6.c();	 Catch:{ all -> 0x099c }
        r7 = r3.a;	 Catch:{ all -> 0x099c }
        r8 = c.e.a.b.f.b.p.j0;	 Catch:{ all -> 0x099c }
        r6 = r6.v(r7, r8);	 Catch:{ all -> 0x099c }
        if (r6 == 0) goto L_0x063d;
    L_0x0604:
        r6 = r2.n0();	 Catch:{ all -> 0x099c }
        r6 = android.text.TextUtils.isEmpty(r6);	 Catch:{ all -> 0x099c }
        if (r6 == 0) goto L_0x061b;
    L_0x060e:
        r6 = r3.v;	 Catch:{ all -> 0x099c }
        r6 = android.text.TextUtils.isEmpty(r6);	 Catch:{ all -> 0x099c }
        if (r6 != 0) goto L_0x061b;
    L_0x0616:
        r6 = r3.v;	 Catch:{ all -> 0x099c }
        r2.p0(r6);	 Catch:{ all -> 0x099c }
    L_0x061b:
        r6 = r2.n0();	 Catch:{ all -> 0x099c }
        r6 = android.text.TextUtils.isEmpty(r6);	 Catch:{ all -> 0x099c }
        if (r6 == 0) goto L_0x0654;
    L_0x0625:
        r6 = r2.s0();	 Catch:{ all -> 0x099c }
        r6 = android.text.TextUtils.isEmpty(r6);	 Catch:{ all -> 0x099c }
        if (r6 == 0) goto L_0x0654;
    L_0x062f:
        r6 = r3.r;	 Catch:{ all -> 0x099c }
        r6 = android.text.TextUtils.isEmpty(r6);	 Catch:{ all -> 0x099c }
        if (r6 != 0) goto L_0x0654;
    L_0x0637:
        r6 = r3.r;	 Catch:{ all -> 0x099c }
        r2.m0(r6);	 Catch:{ all -> 0x099c }
        goto L_0x0654;
    L_0x063d:
        r6 = r2.n0();	 Catch:{ all -> 0x099c }
        r6 = android.text.TextUtils.isEmpty(r6);	 Catch:{ all -> 0x099c }
        if (r6 == 0) goto L_0x0654;
    L_0x0647:
        r6 = r3.r;	 Catch:{ all -> 0x099c }
        r6 = android.text.TextUtils.isEmpty(r6);	 Catch:{ all -> 0x099c }
        if (r6 != 0) goto L_0x0654;
    L_0x064f:
        r6 = r3.r;	 Catch:{ all -> 0x099c }
        r2.m0(r6);	 Catch:{ all -> 0x099c }
    L_0x0654:
        r6 = r3.f;	 Catch:{ all -> 0x099c }
        r8 = 0;
        r10 = (r6 > r8 ? 1 : (r6 == r8 ? 0 : -1));
        if (r10 == 0) goto L_0x065f;
    L_0x065c:
        r2.Y(r6);	 Catch:{ all -> 0x099c }
    L_0x065f:
        r6 = r3.t;	 Catch:{ all -> 0x099c }
        r2.g0(r6);	 Catch:{ all -> 0x099c }
        r6 = r26.N();	 Catch:{ all -> 0x099c }
        r6 = r6.U();	 Catch:{ all -> 0x099c }
        if (r6 == 0) goto L_0x0671;
    L_0x066e:
        r2.H(r6);	 Catch:{ all -> 0x099c }
    L_0x0671:
        r6 = r3.a;	 Catch:{ all -> 0x099c }
        r6 = r1.c(r6);	 Catch:{ all -> 0x099c }
        r7 = r3.w;	 Catch:{ all -> 0x099c }
        r7 = c.e.a.b.f.b.d.b(r7);	 Catch:{ all -> 0x099c }
        r6 = r6.h(r7);	 Catch:{ all -> 0x099c }
        r7 = c.e.a.b.e.c.v8.a();	 Catch:{ all -> 0x099c }
        if (r7 == 0) goto L_0x069b;
    L_0x0687:
        r7 = r1.j;	 Catch:{ all -> 0x099c }
        r7 = r7.c();	 Catch:{ all -> 0x099c }
        r10 = c.e.a.b.f.b.p.J0;	 Catch:{ all -> 0x099c }
        r7 = r7.o(r10);	 Catch:{ all -> 0x099c }
        if (r7 == 0) goto L_0x069b;
    L_0x0695:
        r7 = r6.j();	 Catch:{ all -> 0x099c }
        if (r7 == 0) goto L_0x073f;
    L_0x069b:
        r7 = r1.i;	 Catch:{ all -> 0x099c }
        r10 = r3.a;	 Catch:{ all -> 0x099c }
        r7 = r7.s(r10, r6);	 Catch:{ all -> 0x099c }
        r10 = r7.first;	 Catch:{ all -> 0x099c }
        r10 = (java.lang.CharSequence) r10;	 Catch:{ all -> 0x099c }
        r10 = android.text.TextUtils.isEmpty(r10);	 Catch:{ all -> 0x099c }
        if (r10 != 0) goto L_0x06c7;
    L_0x06ad:
        r10 = r3.o;	 Catch:{ all -> 0x099c }
        if (r10 == 0) goto L_0x073f;
    L_0x06b1:
        r10 = r7.first;	 Catch:{ all -> 0x099c }
        r10 = (java.lang.String) r10;	 Catch:{ all -> 0x099c }
        r2.Z(r10);	 Catch:{ all -> 0x099c }
        r7 = r7.second;	 Catch:{ all -> 0x099c }
        if (r7 == 0) goto L_0x073f;
    L_0x06bc:
        r7 = (java.lang.Boolean) r7;	 Catch:{ all -> 0x099c }
        r7 = r7.booleanValue();	 Catch:{ all -> 0x099c }
        r2.v(r7);	 Catch:{ all -> 0x099c }
        goto L_0x073f;
    L_0x06c7:
        r7 = r1.j;	 Catch:{ all -> 0x099c }
        r7 = r7.y();	 Catch:{ all -> 0x099c }
        r10 = r1.j;	 Catch:{ all -> 0x099c }
        r10 = r10.e();	 Catch:{ all -> 0x099c }
        r7 = r7.s(r10);	 Catch:{ all -> 0x099c }
        if (r7 != 0) goto L_0x073f;
    L_0x06d9:
        r7 = r3.p;	 Catch:{ all -> 0x099c }
        if (r7 == 0) goto L_0x073f;
    L_0x06dd:
        r7 = c.e.a.b.e.c.jb.a();	 Catch:{ all -> 0x099c }
        if (r7 == 0) goto L_0x06f3;
    L_0x06e3:
        r7 = r1.j;	 Catch:{ all -> 0x099c }
        r7 = r7.c();	 Catch:{ all -> 0x099c }
        r10 = r3.a;	 Catch:{ all -> 0x099c }
        r11 = c.e.a.b.f.b.p.G0;	 Catch:{ all -> 0x099c }
        r7 = r7.v(r10, r11);	 Catch:{ all -> 0x099c }
        if (r7 != 0) goto L_0x073f;
    L_0x06f3:
        r7 = r1.j;	 Catch:{ all -> 0x099c }
        r7 = r7.e();	 Catch:{ all -> 0x099c }
        r7 = r7.getContentResolver();	 Catch:{ all -> 0x099c }
        r10 = "android_id";
        r7 = android.provider.Settings.Secure.getString(r7, r10);	 Catch:{ all -> 0x099c }
        if (r7 != 0) goto L_0x071f;
    L_0x0705:
        r7 = r1.j;	 Catch:{ all -> 0x099c }
        r7 = r7.d();	 Catch:{ all -> 0x099c }
        r7 = r7.A();	 Catch:{ all -> 0x099c }
        r10 = "null secure ID. appId";
        r11 = r2.f0();	 Catch:{ all -> 0x099c }
        r11 = c.e.a.b.f.b.q3.s(r11);	 Catch:{ all -> 0x099c }
        r7.b(r10, r11);	 Catch:{ all -> 0x099c }
        r7 = "null";
        goto L_0x073c;
    L_0x071f:
        r10 = r7.isEmpty();	 Catch:{ all -> 0x099c }
        if (r10 == 0) goto L_0x073c;
    L_0x0725:
        r10 = r1.j;	 Catch:{ all -> 0x099c }
        r10 = r10.d();	 Catch:{ all -> 0x099c }
        r10 = r10.A();	 Catch:{ all -> 0x099c }
        r11 = "empty secure ID. appId";
        r12 = r2.f0();	 Catch:{ all -> 0x099c }
        r12 = c.e.a.b.f.b.q3.s(r12);	 Catch:{ all -> 0x099c }
        r10.b(r11, r12);	 Catch:{ all -> 0x099c }
    L_0x073c:
        r2.j0(r7);	 Catch:{ all -> 0x099c }
    L_0x073f:
        r7 = r1.j;	 Catch:{ all -> 0x099c }
        r7 = r7.y();	 Catch:{ all -> 0x099c }
        r7.o();	 Catch:{ all -> 0x099c }
        r7 = android.os.Build.MODEL;	 Catch:{ all -> 0x099c }
        r2.F(r7);	 Catch:{ all -> 0x099c }
        r7 = r1.j;	 Catch:{ all -> 0x099c }
        r7 = r7.y();	 Catch:{ all -> 0x099c }
        r7.o();	 Catch:{ all -> 0x099c }
        r7 = android.os.Build.VERSION.RELEASE;	 Catch:{ all -> 0x099c }
        r2.A(r7);	 Catch:{ all -> 0x099c }
        r7 = r1.j;	 Catch:{ all -> 0x099c }
        r7 = r7.y();	 Catch:{ all -> 0x099c }
        r10 = r7.t();	 Catch:{ all -> 0x099c }
        r7 = (int) r10;	 Catch:{ all -> 0x099c }
        r2.Q(r7);	 Catch:{ all -> 0x099c }
        r7 = r1.j;	 Catch:{ all -> 0x099c }
        r7 = r7.y();	 Catch:{ all -> 0x099c }
        r7 = r7.u();	 Catch:{ all -> 0x099c }
        r2.I(r7);	 Catch:{ all -> 0x099c }
        r7 = r1.j;	 Catch:{ all -> 0x099c }
        r7 = r7.c();	 Catch:{ all -> 0x099c }
        r10 = c.e.a.b.f.b.p.y0;	 Catch:{ all -> 0x099c }
        r7 = r7.o(r10);	 Catch:{ all -> 0x099c }
        if (r7 != 0) goto L_0x0789;
    L_0x0784:
        r10 = r3.l;	 Catch:{ all -> 0x099c }
        r2.d0(r10);	 Catch:{ all -> 0x099c }
    L_0x0789:
        r7 = r1.j;	 Catch:{ all -> 0x099c }
        r7 = r7.i();	 Catch:{ all -> 0x099c }
        if (r7 == 0) goto L_0x07b8;
    L_0x0791:
        r7 = c.e.a.b.e.c.v8.a();	 Catch:{ all -> 0x099c }
        if (r7 == 0) goto L_0x07a9;
    L_0x0797:
        r7 = r1.j;	 Catch:{ all -> 0x099c }
        r7 = r7.c();	 Catch:{ all -> 0x099c }
        r10 = c.e.a.b.f.b.p.J0;	 Catch:{ all -> 0x099c }
        r7 = r7.o(r10);	 Catch:{ all -> 0x099c }
        if (r7 == 0) goto L_0x07a9;
    L_0x07a5:
        r2.f0();	 Catch:{ all -> 0x099c }
        goto L_0x07ac;
    L_0x07a9:
        r2.f0();	 Catch:{ all -> 0x099c }
    L_0x07ac:
        r7 = 0;
        r10 = android.text.TextUtils.isEmpty(r7);	 Catch:{ all -> 0x099c }
        if (r10 == 0) goto L_0x07b4;
    L_0x07b3:
        goto L_0x07b8;
    L_0x07b4:
        r2.l0();	 Catch:{ all -> 0x099c }
        throw r7;
    L_0x07b8:
        r7 = r26.K();	 Catch:{ all -> 0x099c }
        r10 = r3.a;	 Catch:{ all -> 0x099c }
        r7 = r7.T(r10);	 Catch:{ all -> 0x099c }
        if (r7 != 0) goto L_0x0865;
    L_0x07c4:
        r7 = new c.e.a.b.f.b.a4;	 Catch:{ all -> 0x099c }
        r10 = r1.j;	 Catch:{ all -> 0x099c }
        r11 = r3.a;	 Catch:{ all -> 0x099c }
        r7.m1377init(r10, r11);	 Catch:{ all -> 0x099c }
        r10 = c.e.a.b.e.c.v8.a();	 Catch:{ all -> 0x099c }
        if (r10 == 0) goto L_0x07e9;
    L_0x07d3:
        r10 = r1.j;	 Catch:{ all -> 0x099c }
        r10 = r10.c();	 Catch:{ all -> 0x099c }
        r11 = c.e.a.b.f.b.p.J0;	 Catch:{ all -> 0x099c }
        r10 = r10.o(r11);	 Catch:{ all -> 0x099c }
        if (r10 == 0) goto L_0x07e9;
    L_0x07e1:
        r10 = r1.g(r6);	 Catch:{ all -> 0x099c }
        r7.c(r10);	 Catch:{ all -> 0x099c }
        goto L_0x07f0;
    L_0x07e9:
        r10 = r26.W();	 Catch:{ all -> 0x099c }
        r7.c(r10);	 Catch:{ all -> 0x099c }
    L_0x07f0:
        r10 = r3.k;	 Catch:{ all -> 0x099c }
        r7.A(r10);	 Catch:{ all -> 0x099c }
        r10 = r3.b;	 Catch:{ all -> 0x099c }
        r7.m(r10);	 Catch:{ all -> 0x099c }
        r10 = c.e.a.b.e.c.v8.a();	 Catch:{ all -> 0x099c }
        if (r10 == 0) goto L_0x0814;
    L_0x0800:
        r10 = r1.j;	 Catch:{ all -> 0x099c }
        r10 = r10.c();	 Catch:{ all -> 0x099c }
        r11 = c.e.a.b.f.b.p.J0;	 Catch:{ all -> 0x099c }
        r10 = r10.o(r11);	 Catch:{ all -> 0x099c }
        if (r10 == 0) goto L_0x0814;
    L_0x080e:
        r10 = r6.j();	 Catch:{ all -> 0x099c }
        if (r10 == 0) goto L_0x081f;
    L_0x0814:
        r10 = r1.i;	 Catch:{ all -> 0x099c }
        r11 = r3.a;	 Catch:{ all -> 0x099c }
        r10 = r10.t(r11);	 Catch:{ all -> 0x099c }
        r7.x(r10);	 Catch:{ all -> 0x099c }
    L_0x081f:
        r7.C(r8);	 Catch:{ all -> 0x099c }
        r7.a(r8);	 Catch:{ all -> 0x099c }
        r7.l(r8);	 Catch:{ all -> 0x099c }
        r10 = r3.c;	 Catch:{ all -> 0x099c }
        r7.D(r10);	 Catch:{ all -> 0x099c }
        r10 = r3.j;	 Catch:{ all -> 0x099c }
        r7.p(r10);	 Catch:{ all -> 0x099c }
        r10 = r3.d;	 Catch:{ all -> 0x099c }
        r7.G(r10);	 Catch:{ all -> 0x099c }
        r10 = r3.e;	 Catch:{ all -> 0x099c }
        r7.t(r10);	 Catch:{ all -> 0x099c }
        r10 = r3.f;	 Catch:{ all -> 0x099c }
        r7.w(r10);	 Catch:{ all -> 0x099c }
        r10 = r3.h;	 Catch:{ all -> 0x099c }
        r7.e(r10);	 Catch:{ all -> 0x099c }
        r10 = r1.j;	 Catch:{ all -> 0x099c }
        r10 = r10.c();	 Catch:{ all -> 0x099c }
        r11 = c.e.a.b.f.b.p.y0;	 Catch:{ all -> 0x099c }
        r10 = r10.o(r11);	 Catch:{ all -> 0x099c }
        if (r10 != 0) goto L_0x0859;
    L_0x0854:
        r10 = r3.l;	 Catch:{ all -> 0x099c }
        r7.R(r10);	 Catch:{ all -> 0x099c }
    L_0x0859:
        r10 = r3.t;	 Catch:{ all -> 0x099c }
        r7.z(r10);	 Catch:{ all -> 0x099c }
        r10 = r26.K();	 Catch:{ all -> 0x099c }
        r10.I(r7);	 Catch:{ all -> 0x099c }
    L_0x0865:
        r10 = c.e.a.b.e.c.v8.a();	 Catch:{ all -> 0x099c }
        if (r10 == 0) goto L_0x087f;
    L_0x086b:
        r10 = r1.j;	 Catch:{ all -> 0x099c }
        r10 = r10.c();	 Catch:{ all -> 0x099c }
        r11 = c.e.a.b.f.b.p.J0;	 Catch:{ all -> 0x099c }
        r10 = r10.o(r11);	 Catch:{ all -> 0x099c }
        if (r10 == 0) goto L_0x087f;
    L_0x0879:
        r6 = r6.k();	 Catch:{ all -> 0x099c }
        if (r6 == 0) goto L_0x0890;
    L_0x087f:
        r6 = r7.s();	 Catch:{ all -> 0x099c }
        r6 = android.text.TextUtils.isEmpty(r6);	 Catch:{ all -> 0x099c }
        if (r6 != 0) goto L_0x0890;
    L_0x0889:
        r6 = r7.s();	 Catch:{ all -> 0x099c }
        r2.c0(r6);	 Catch:{ all -> 0x099c }
    L_0x0890:
        r6 = r7.H();	 Catch:{ all -> 0x099c }
        r6 = android.text.TextUtils.isEmpty(r6);	 Catch:{ all -> 0x099c }
        if (r6 != 0) goto L_0x08a1;
    L_0x089a:
        r6 = r7.H();	 Catch:{ all -> 0x099c }
        r2.i0(r6);	 Catch:{ all -> 0x099c }
    L_0x08a1:
        r6 = r26.K();	 Catch:{ all -> 0x099c }
        r3 = r3.a;	 Catch:{ all -> 0x099c }
        r3 = r6.C(r3);	 Catch:{ all -> 0x099c }
        r11 = 0;
    L_0x08ac:
        r6 = r3.size();	 Catch:{ all -> 0x099c }
        if (r11 >= r6) goto L_0x08e1;
    L_0x08b2:
        r6 = c.e.a.b.e.c.i1.L();	 Catch:{ all -> 0x099c }
        r7 = r3.get(r11);	 Catch:{ all -> 0x099c }
        r7 = (c.e.a.b.f.b.u9) r7;	 Catch:{ all -> 0x099c }
        r7 = r7.c;	 Catch:{ all -> 0x099c }
        r6.n(r7);	 Catch:{ all -> 0x099c }
        r7 = r3.get(r11);	 Catch:{ all -> 0x099c }
        r7 = (c.e.a.b.f.b.u9) r7;	 Catch:{ all -> 0x099c }
        r12 = r7.d;	 Catch:{ all -> 0x099c }
        r6.m(r12);	 Catch:{ all -> 0x099c }
        r7 = r26.N();	 Catch:{ all -> 0x099c }
        r10 = r3.get(r11);	 Catch:{ all -> 0x099c }
        r10 = (c.e.a.b.f.b.u9) r10;	 Catch:{ all -> 0x099c }
        r10 = r10.e;	 Catch:{ all -> 0x099c }
        r7.G(r6, r10);	 Catch:{ all -> 0x099c }
        r2.r(r6);	 Catch:{ all -> 0x099c }
        r11 = r11 + 1;
        goto L_0x08ac;
    L_0x08e1:
        r3 = r26.K();	 Catch:{ IOException -> 0x0950 }
        r6 = r2.l();	 Catch:{ IOException -> 0x0950 }
        r6 = (c.e.a.b.e.c.u4) r6;	 Catch:{ IOException -> 0x0950 }
        r6 = (c.e.a.b.e.c.e1) r6;	 Catch:{ IOException -> 0x0950 }
        r2 = r3.v(r6);	 Catch:{ IOException -> 0x0950 }
        r6 = r26.K();	 Catch:{ all -> 0x099c }
        r7 = r4.f;	 Catch:{ all -> 0x099c }
        if (r7 == 0) goto L_0x0946;
    L_0x08f9:
        r7 = r7.iterator();	 Catch:{ all -> 0x099c }
    L_0x08fd:
        r10 = r7;
        r10 = (c.e.a.b.f.b.n) r10;
        r11 = r10.hasNext();	 Catch:{ all -> 0x099c }
        if (r11 == 0) goto L_0x0913;
    L_0x0906:
        r10 = r10.next();	 Catch:{ all -> 0x099c }
        r10 = (java.lang.String) r10;	 Catch:{ all -> 0x099c }
        r10 = r5.equals(r10);	 Catch:{ all -> 0x099c }
        if (r10 == 0) goto L_0x08fd;
    L_0x0912:
        goto L_0x0944;
    L_0x0913:
        r5 = r26.H();	 Catch:{ all -> 0x099c }
        r7 = r4.a;	 Catch:{ all -> 0x099c }
        r10 = r4.b;	 Catch:{ all -> 0x099c }
        r5 = r5.y(r7, r10);	 Catch:{ all -> 0x099c }
        r10 = r26.K();	 Catch:{ all -> 0x099c }
        r11 = r26.V();	 Catch:{ all -> 0x099c }
        r13 = r4.a;	 Catch:{ all -> 0x099c }
        r14 = 0;
        r15 = 0;
        r7 = r10.y(r11, r13, r14, r15);	 Catch:{ all -> 0x099c }
        if (r5 == 0) goto L_0x0946;
    L_0x0931:
        r10 = r7.e;	 Catch:{ all -> 0x099c }
        r5 = r1.j;	 Catch:{ all -> 0x099c }
        r5 = r5.c();	 Catch:{ all -> 0x099c }
        r7 = r4.a;	 Catch:{ all -> 0x099c }
        r5 = r5.s(r7);	 Catch:{ all -> 0x099c }
        r12 = (long) r5;	 Catch:{ all -> 0x099c }
        r5 = (r10 > r12 ? 1 : (r10 == r12 ? 0 : -1));
        if (r5 >= 0) goto L_0x0946;
    L_0x0944:
        r5 = 1;
        goto L_0x0947;
    L_0x0946:
        r5 = 0;
    L_0x0947:
        r2 = r6.L(r4, r2, r5);	 Catch:{ all -> 0x099c }
        if (r2 == 0) goto L_0x0969;
    L_0x094d:
        r1.m = r8;	 Catch:{ all -> 0x099c }
        goto L_0x0969;
    L_0x0950:
        r0 = move-exception;
        r3 = r0;
        r4 = r1.j;	 Catch:{ all -> 0x099c }
        r4 = r4.d();	 Catch:{ all -> 0x099c }
        r4 = r4.z();	 Catch:{ all -> 0x099c }
        r5 = "Data loss. Failed to insert raw event metadata. appId";
        r2 = r2.f0();	 Catch:{ all -> 0x099c }
        r2 = c.e.a.b.f.b.q3.s(r2);	 Catch:{ all -> 0x099c }
        r4.c(r5, r2, r3);	 Catch:{ all -> 0x099c }
    L_0x0969:
        r2 = r26.K();	 Catch:{ all -> 0x099c }
        r2.s();	 Catch:{ all -> 0x099c }
        r2 = r26.K();
        r2.e0();
        r26.w();
        r2 = r1.j;
        r2 = r2.d();
        r2 = r2.D();
        r3 = java.lang.System.nanoTime();
        r3 = r3 - r22;
        r5 = 500000; // 0x7a120 float:7.00649E-40 double:2.47033E-318;
        r3 = r3 + r5;
        r5 = 1000000; // 0xf4240 float:1.401298E-39 double:4.940656E-318;
        r3 = r3 / r5;
        r3 = java.lang.Long.valueOf(r3);
        r4 = "Background event processing time, ms";
        r2.b(r4, r3);
        return;
    L_0x099c:
        r0 = move-exception;
        r2 = r0;
        r3 = r26.K();
        r3.e0();
        throw r2;
        */
        throw new UnsupportedOperationException("Method not decompiled: c.e.a.b.f.b.k9.I(com.google.android.gms.measurement.internal.zzaq, com.google.android.gms.measurement.internal.zzn):void");
    }

    public final x3 J() {
        C(this.b);
        return this.b;
    }

    public final g K() {
        C(this.c);
        return this.c;
    }

    public final boolean L(zzn zzn) {
        return (fa.a() && this.j.g.u(zzn.a, p.j0)) ? (TextUtils.isEmpty(zzn.b) && TextUtils.isEmpty(zzn.v) && TextUtils.isEmpty(zzn.r)) ? false : true : (TextUtils.isEmpty(zzn.b) && TextUtils.isEmpty(zzn.r)) ? false : true;
    }

    public final ba M() {
        C(this.f);
        return this.f;
    }

    public final q9 N() {
        C(this.g);
        return this.g;
    }

    public final o3 O() {
        return this.j.u();
    }

    public final void P() {
        if (!this.k) {
            throw new IllegalStateException("UploadController is not initialized");
        }
    }

    /* JADX WARNING: Removed duplicated region for block: B:102:0x0227 A:{Catch:{ all -> 0x0407 }} */
    /* JADX WARNING: Removed duplicated region for block: B:144:0x032e A:{Catch:{ all -> 0x0407 }} */
    /* JADX WARNING: Removed duplicated region for block: B:143:0x031d A:{Catch:{ all -> 0x0407 }} */
    /* JADX WARNING: Removed duplicated region for block: B:150:0x0354 A:{Catch:{ MalformedURLException -> 0x03c4 }} */
    /* JADX WARNING: Removed duplicated region for block: B:149:0x0352 A:{Catch:{ MalformedURLException -> 0x03c4 }} */
    /* JADX WARNING: Removed duplicated region for block: B:154:0x036a A:{Catch:{ MalformedURLException -> 0x03c4 }} */
    /* JADX WARNING: Removed duplicated region for block: B:153:0x035c A:{Catch:{ MalformedURLException -> 0x03c4 }} */
    /* JADX WARNING: Removed duplicated region for block: B:157:0x0382 A:{Catch:{ MalformedURLException -> 0x03c4 }} */
    /* JADX WARNING: Removed duplicated region for block: B:98:0x0221 A:{Catch:{ all -> 0x0407 }} */
    /* JADX WARNING: Removed duplicated region for block: B:97:0x0220 A:{Catch:{ all -> 0x0407 }} */
    /* JADX WARNING: Missing exception handler attribute for start block: B:159:0x03c4 */
    /* JADX WARNING: Can't wrap try/catch for region: R(2:159|160) */
    /* JADX WARNING: Missing block: B:160:?, code skipped:
            r1.j.d().f.c("Failed to parse upload URL. Not uploading. appId", c.e.a.b.f.b.q3.s(r5), r6);
     */
    public final void Q() {
        /*
        r17 = this;
        r1 = r17;
        r17.U();
        r17.P();
        r0 = 1;
        r1.s = r0;
        r2 = 0;
        r3 = r1.j;	 Catch:{ all -> 0x0407 }
        r3 = r3.x();	 Catch:{ all -> 0x0407 }
        r3 = r3.e;	 Catch:{ all -> 0x0407 }
        if (r3 != 0) goto L_0x0029;
    L_0x0016:
        r0 = r1.j;	 Catch:{ all -> 0x0407 }
        r0 = r0.d();	 Catch:{ all -> 0x0407 }
        r0 = r0.i;	 Catch:{ all -> 0x0407 }
        r3 = "Upload data called on the client side before use of service was decided";
        r0.a(r3);	 Catch:{ all -> 0x0407 }
        r1.s = r2;
        r17.x();
        return;
    L_0x0029:
        r3 = r3.booleanValue();	 Catch:{ all -> 0x0407 }
        if (r3 == 0) goto L_0x0042;
    L_0x002f:
        r0 = r1.j;	 Catch:{ all -> 0x0407 }
        r0 = r0.d();	 Catch:{ all -> 0x0407 }
        r0 = r0.f;	 Catch:{ all -> 0x0407 }
        r3 = "Upload called in the client side when service should be used";
        r0.a(r3);	 Catch:{ all -> 0x0407 }
        r1.s = r2;
        r17.x();
        return;
    L_0x0042:
        r3 = r1.m;	 Catch:{ all -> 0x0407 }
        r5 = 0;
        r7 = (r3 > r5 ? 1 : (r3 == r5 ? 0 : -1));
        if (r7 <= 0) goto L_0x0053;
    L_0x004a:
        r17.w();	 Catch:{ all -> 0x0407 }
        r1.s = r2;
        r17.x();
        return;
    L_0x0053:
        r17.U();	 Catch:{ all -> 0x0407 }
        r3 = r1.v;	 Catch:{ all -> 0x0407 }
        if (r3 == 0) goto L_0x005c;
    L_0x005a:
        r3 = 1;
        goto L_0x005d;
    L_0x005c:
        r3 = 0;
    L_0x005d:
        if (r3 == 0) goto L_0x0072;
    L_0x005f:
        r0 = r1.j;	 Catch:{ all -> 0x0407 }
        r0 = r0.d();	 Catch:{ all -> 0x0407 }
        r0 = r0.n;	 Catch:{ all -> 0x0407 }
        r3 = "Uploading requested multiple times";
        r0.a(r3);	 Catch:{ all -> 0x0407 }
        r1.s = r2;
        r17.x();
        return;
    L_0x0072:
        r3 = r17.J();	 Catch:{ all -> 0x0407 }
        r3 = r3.u();	 Catch:{ all -> 0x0407 }
        if (r3 != 0) goto L_0x0092;
    L_0x007c:
        r0 = r1.j;	 Catch:{ all -> 0x0407 }
        r0 = r0.d();	 Catch:{ all -> 0x0407 }
        r0 = r0.n;	 Catch:{ all -> 0x0407 }
        r3 = "Network not connected, ignoring upload request";
        r0.a(r3);	 Catch:{ all -> 0x0407 }
        r17.w();	 Catch:{ all -> 0x0407 }
        r1.s = r2;
        r17.x();
        return;
    L_0x0092:
        r3 = r1.j;	 Catch:{ all -> 0x0407 }
        r3 = r3.n;	 Catch:{ all -> 0x0407 }
        r3 = (c.e.a.b.b.j.c) r3;	 Catch:{ all -> 0x0407 }
        java.util.Objects.requireNonNull(r3);	 Catch:{ all -> 0x0407 }
        r3 = java.lang.System.currentTimeMillis();	 Catch:{ all -> 0x0407 }
        r7 = r1.j;	 Catch:{ all -> 0x0407 }
        r7 = r7.g;	 Catch:{ all -> 0x0407 }
        r8 = c.e.a.b.f.b.p.Q;	 Catch:{ all -> 0x0407 }
        r9 = 0;
        r7 = r7.q(r9, r8);	 Catch:{ all -> 0x0407 }
        r8 = c.e.a.b.f.b.p.d;	 Catch:{ all -> 0x0407 }
        r8 = r8.a(r9);	 Catch:{ all -> 0x0407 }
        r8 = (java.lang.Long) r8;	 Catch:{ all -> 0x0407 }
        r10 = r8.longValue();	 Catch:{ all -> 0x0407 }
        r10 = r3 - r10;
        r8 = 0;
    L_0x00b9:
        if (r8 >= r7) goto L_0x00c4;
    L_0x00bb:
        r12 = r1.t(r10);	 Catch:{ all -> 0x0407 }
        if (r12 == 0) goto L_0x00c4;
    L_0x00c1:
        r8 = r8 + 1;
        goto L_0x00b9;
    L_0x00c4:
        r7 = r1.j;	 Catch:{ all -> 0x0407 }
        r7 = r7.o();	 Catch:{ all -> 0x0407 }
        r7 = r7.e;	 Catch:{ all -> 0x0407 }
        r7 = r7.a();	 Catch:{ all -> 0x0407 }
        r10 = (r7 > r5 ? 1 : (r7 == r5 ? 0 : -1));
        if (r10 == 0) goto L_0x00eb;
    L_0x00d4:
        r5 = r1.j;	 Catch:{ all -> 0x0407 }
        r5 = r5.d();	 Catch:{ all -> 0x0407 }
        r5 = r5.m;	 Catch:{ all -> 0x0407 }
        r6 = "Uploading events. Elapsed time since last upload attempt (ms)";
        r7 = r3 - r7;
        r7 = java.lang.Math.abs(r7);	 Catch:{ all -> 0x0407 }
        r7 = java.lang.Long.valueOf(r7);	 Catch:{ all -> 0x0407 }
        r5.b(r6, r7);	 Catch:{ all -> 0x0407 }
    L_0x00eb:
        r5 = r17.K();	 Catch:{ all -> 0x0407 }
        r5 = r5.u();	 Catch:{ all -> 0x0407 }
        r6 = android.text.TextUtils.isEmpty(r5);	 Catch:{ all -> 0x0407 }
        r7 = -1;
        if (r6 != 0) goto L_0x03d6;
    L_0x00fb:
        r10 = r1.x;	 Catch:{ all -> 0x0407 }
        r6 = (r10 > r7 ? 1 : (r10 == r7 ? 0 : -1));
        if (r6 != 0) goto L_0x010b;
    L_0x0101:
        r6 = r17.K();	 Catch:{ all -> 0x0407 }
        r6 = r6.j0();	 Catch:{ all -> 0x0407 }
        r1.x = r6;	 Catch:{ all -> 0x0407 }
    L_0x010b:
        r6 = r1.j;	 Catch:{ all -> 0x0407 }
        r6 = r6.g;	 Catch:{ all -> 0x0407 }
        r7 = c.e.a.b.f.b.p.g;	 Catch:{ all -> 0x0407 }
        r6 = r6.q(r5, r7);	 Catch:{ all -> 0x0407 }
        r7 = r1.j;	 Catch:{ all -> 0x0407 }
        r7 = r7.g;	 Catch:{ all -> 0x0407 }
        r8 = c.e.a.b.f.b.p.h;	 Catch:{ all -> 0x0407 }
        r7 = r7.q(r5, r8);	 Catch:{ all -> 0x0407 }
        r7 = java.lang.Math.max(r2, r7);	 Catch:{ all -> 0x0407 }
        r8 = r17.K();	 Catch:{ all -> 0x0407 }
        r6 = r8.D(r5, r6, r7);	 Catch:{ all -> 0x0407 }
        r7 = r6.isEmpty();	 Catch:{ all -> 0x0407 }
        if (r7 != 0) goto L_0x0401;
    L_0x0131:
        r7 = c.e.a.b.e.c.v8.a();	 Catch:{ all -> 0x0407 }
        if (r7 == 0) goto L_0x014d;
    L_0x0137:
        r7 = r1.j;	 Catch:{ all -> 0x0407 }
        r7 = r7.g;	 Catch:{ all -> 0x0407 }
        r8 = c.e.a.b.f.b.p.J0;	 Catch:{ all -> 0x0407 }
        r7 = r7.o(r8);	 Catch:{ all -> 0x0407 }
        if (r7 == 0) goto L_0x014d;
    L_0x0143:
        r7 = r1.c(r5);	 Catch:{ all -> 0x0407 }
        r7 = r7.j();	 Catch:{ all -> 0x0407 }
        if (r7 == 0) goto L_0x01a0;
    L_0x014d:
        r7 = r6.iterator();	 Catch:{ all -> 0x0407 }
    L_0x0151:
        r8 = r7.hasNext();	 Catch:{ all -> 0x0407 }
        if (r8 == 0) goto L_0x0170;
    L_0x0157:
        r8 = r7.next();	 Catch:{ all -> 0x0407 }
        r8 = (android.util.Pair) r8;	 Catch:{ all -> 0x0407 }
        r8 = r8.first;	 Catch:{ all -> 0x0407 }
        r8 = (c.e.a.b.e.c.e1) r8;	 Catch:{ all -> 0x0407 }
        r10 = r8.J();	 Catch:{ all -> 0x0407 }
        r10 = android.text.TextUtils.isEmpty(r10);	 Catch:{ all -> 0x0407 }
        if (r10 != 0) goto L_0x0151;
    L_0x016b:
        r7 = r8.J();	 Catch:{ all -> 0x0407 }
        goto L_0x0171;
    L_0x0170:
        r7 = r9;
    L_0x0171:
        if (r7 == 0) goto L_0x01a0;
    L_0x0173:
        r8 = 0;
    L_0x0174:
        r10 = r6.size();	 Catch:{ all -> 0x0407 }
        if (r8 >= r10) goto L_0x01a0;
    L_0x017a:
        r10 = r6.get(r8);	 Catch:{ all -> 0x0407 }
        r10 = (android.util.Pair) r10;	 Catch:{ all -> 0x0407 }
        r10 = r10.first;	 Catch:{ all -> 0x0407 }
        r10 = (c.e.a.b.e.c.e1) r10;	 Catch:{ all -> 0x0407 }
        r11 = r10.J();	 Catch:{ all -> 0x0407 }
        r11 = android.text.TextUtils.isEmpty(r11);	 Catch:{ all -> 0x0407 }
        if (r11 != 0) goto L_0x019d;
    L_0x018e:
        r10 = r10.J();	 Catch:{ all -> 0x0407 }
        r10 = r10.equals(r7);	 Catch:{ all -> 0x0407 }
        if (r10 != 0) goto L_0x019d;
    L_0x0198:
        r6 = r6.subList(r2, r8);	 Catch:{ all -> 0x0407 }
        goto L_0x01a0;
    L_0x019d:
        r8 = r8 + 1;
        goto L_0x0174;
    L_0x01a0:
        r7 = c.e.a.b.e.c.d1.x();	 Catch:{ all -> 0x0407 }
        r8 = r6.size();	 Catch:{ all -> 0x0407 }
        r10 = new java.util.ArrayList;	 Catch:{ all -> 0x0407 }
        r11 = r6.size();	 Catch:{ all -> 0x0407 }
        r10.<init>(r11);	 Catch:{ all -> 0x0407 }
        r11 = r1.j;	 Catch:{ all -> 0x0407 }
        r11 = r11.g;	 Catch:{ all -> 0x0407 }
        r11 = r11.c;	 Catch:{ all -> 0x0407 }
        r12 = "gaia_collection_enabled";
        r11 = r11.c(r5, r12);	 Catch:{ all -> 0x0407 }
        r12 = "1";
        r11 = r12.equals(r11);	 Catch:{ all -> 0x0407 }
        if (r11 == 0) goto L_0x01e3;
    L_0x01c5:
        r11 = c.e.a.b.e.c.v8.a();	 Catch:{ all -> 0x0407 }
        if (r11 == 0) goto L_0x01e1;
    L_0x01cb:
        r11 = r1.j;	 Catch:{ all -> 0x0407 }
        r11 = r11.g;	 Catch:{ all -> 0x0407 }
        r12 = c.e.a.b.f.b.p.J0;	 Catch:{ all -> 0x0407 }
        r11 = r11.o(r12);	 Catch:{ all -> 0x0407 }
        if (r11 == 0) goto L_0x01e1;
    L_0x01d7:
        r11 = r1.c(r5);	 Catch:{ all -> 0x0407 }
        r11 = r11.j();	 Catch:{ all -> 0x0407 }
        if (r11 == 0) goto L_0x01e3;
    L_0x01e1:
        r11 = 1;
        goto L_0x01e4;
    L_0x01e3:
        r11 = 0;
    L_0x01e4:
        r12 = c.e.a.b.e.c.v8.a();	 Catch:{ all -> 0x0407 }
        if (r12 == 0) goto L_0x0203;
    L_0x01ea:
        r12 = r1.j;	 Catch:{ all -> 0x0407 }
        r12 = r12.g;	 Catch:{ all -> 0x0407 }
        r13 = c.e.a.b.f.b.p.J0;	 Catch:{ all -> 0x0407 }
        r12 = r12.o(r13);	 Catch:{ all -> 0x0407 }
        if (r12 == 0) goto L_0x0203;
    L_0x01f6:
        r12 = r1.c(r5);	 Catch:{ all -> 0x0407 }
        r12 = r12.j();	 Catch:{ all -> 0x0407 }
        if (r12 == 0) goto L_0x0201;
    L_0x0200:
        goto L_0x0203;
    L_0x0201:
        r12 = 0;
        goto L_0x0204;
    L_0x0203:
        r12 = 1;
    L_0x0204:
        r13 = c.e.a.b.e.c.v8.a();	 Catch:{ all -> 0x0407 }
        if (r13 == 0) goto L_0x0223;
    L_0x020a:
        r13 = r1.j;	 Catch:{ all -> 0x0407 }
        r13 = r13.g;	 Catch:{ all -> 0x0407 }
        r14 = c.e.a.b.f.b.p.J0;	 Catch:{ all -> 0x0407 }
        r13 = r13.o(r14);	 Catch:{ all -> 0x0407 }
        if (r13 == 0) goto L_0x0223;
    L_0x0216:
        r13 = r1.c(r5);	 Catch:{ all -> 0x0407 }
        r13 = r13.k();	 Catch:{ all -> 0x0407 }
        if (r13 == 0) goto L_0x0221;
    L_0x0220:
        goto L_0x0223;
    L_0x0221:
        r13 = 0;
        goto L_0x0224;
    L_0x0223:
        r13 = 1;
    L_0x0224:
        r14 = 0;
    L_0x0225:
        if (r14 >= r8) goto L_0x030e;
    L_0x0227:
        r15 = r6.get(r14);	 Catch:{ all -> 0x0407 }
        r15 = (android.util.Pair) r15;	 Catch:{ all -> 0x0407 }
        r15 = r15.first;	 Catch:{ all -> 0x0407 }
        r15 = (c.e.a.b.e.c.e1) r15;	 Catch:{ all -> 0x0407 }
        r15 = r15.t();	 Catch:{ all -> 0x0407 }
        r15 = (c.e.a.b.e.c.e1.a) r15;	 Catch:{ all -> 0x0407 }
        r16 = r6.get(r14);	 Catch:{ all -> 0x0407 }
        r0 = r16;
        r0 = (android.util.Pair) r0;	 Catch:{ all -> 0x0407 }
        r0 = r0.second;	 Catch:{ all -> 0x0407 }
        r0 = (java.lang.Long) r0;	 Catch:{ all -> 0x0407 }
        r10.add(r0);	 Catch:{ all -> 0x0407 }
        r16 = r10;
        r9 = 33025; // 0x8101 float:4.6278E-41 double:1.63165E-319;
        r0 = r15.c;	 Catch:{ all -> 0x0407 }
        if (r0 == 0) goto L_0x0254;
    L_0x024f:
        r15.j();	 Catch:{ all -> 0x0407 }
        r15.c = r2;	 Catch:{ all -> 0x0407 }
    L_0x0254:
        r0 = r15.b;	 Catch:{ all -> 0x0407 }
        r0 = (c.e.a.b.e.c.e1) r0;	 Catch:{ all -> 0x0407 }
        c.e.a.b.e.c.e1.W0(r0, r9);	 Catch:{ all -> 0x0407 }
        r0 = r15.c;	 Catch:{ all -> 0x0407 }
        if (r0 == 0) goto L_0x0264;
    L_0x025f:
        r15.j();	 Catch:{ all -> 0x0407 }
        r15.c = r2;	 Catch:{ all -> 0x0407 }
    L_0x0264:
        r0 = r15.b;	 Catch:{ all -> 0x0407 }
        r0 = (c.e.a.b.e.c.e1) r0;	 Catch:{ all -> 0x0407 }
        c.e.a.b.e.c.e1.y(r0, r3);	 Catch:{ all -> 0x0407 }
        r0 = r15.c;	 Catch:{ all -> 0x0407 }
        if (r0 == 0) goto L_0x0274;
    L_0x026f:
        r15.j();	 Catch:{ all -> 0x0407 }
        r15.c = r2;	 Catch:{ all -> 0x0407 }
    L_0x0274:
        r0 = r15.b;	 Catch:{ all -> 0x0407 }
        r0 = (c.e.a.b.e.c.e1) r0;	 Catch:{ all -> 0x0407 }
        c.e.a.b.e.c.e1.m0(r0, r2);	 Catch:{ all -> 0x0407 }
        if (r11 != 0) goto L_0x028d;
    L_0x027d:
        r0 = r15.c;	 Catch:{ all -> 0x0407 }
        if (r0 == 0) goto L_0x0286;
    L_0x0281:
        r15.j();	 Catch:{ all -> 0x0407 }
        r15.c = r2;	 Catch:{ all -> 0x0407 }
    L_0x0286:
        r0 = r15.b;	 Catch:{ all -> 0x0407 }
        r0 = (c.e.a.b.e.c.e1) r0;	 Catch:{ all -> 0x0407 }
        c.e.a.b.e.c.e1.i1(r0);	 Catch:{ all -> 0x0407 }
    L_0x028d:
        r0 = c.e.a.b.e.c.v8.a();	 Catch:{ all -> 0x0407 }
        if (r0 == 0) goto L_0x02d3;
    L_0x0293:
        r0 = r1.j;	 Catch:{ all -> 0x0407 }
        r0 = r0.g;	 Catch:{ all -> 0x0407 }
        r9 = c.e.a.b.f.b.p.J0;	 Catch:{ all -> 0x0407 }
        r0 = r0.o(r9);	 Catch:{ all -> 0x0407 }
        if (r0 == 0) goto L_0x02d3;
    L_0x029f:
        if (r12 != 0) goto L_0x02c1;
    L_0x02a1:
        r0 = r15.c;	 Catch:{ all -> 0x0407 }
        if (r0 == 0) goto L_0x02aa;
    L_0x02a5:
        r15.j();	 Catch:{ all -> 0x0407 }
        r15.c = r2;	 Catch:{ all -> 0x0407 }
    L_0x02aa:
        r0 = r15.b;	 Catch:{ all -> 0x0407 }
        r0 = (c.e.a.b.e.c.e1) r0;	 Catch:{ all -> 0x0407 }
        c.e.a.b.e.c.e1.F0(r0);	 Catch:{ all -> 0x0407 }
        r0 = r15.c;	 Catch:{ all -> 0x0407 }
        if (r0 == 0) goto L_0x02ba;
    L_0x02b5:
        r15.j();	 Catch:{ all -> 0x0407 }
        r15.c = r2;	 Catch:{ all -> 0x0407 }
    L_0x02ba:
        r0 = r15.b;	 Catch:{ all -> 0x0407 }
        r0 = (c.e.a.b.e.c.e1) r0;	 Catch:{ all -> 0x0407 }
        c.e.a.b.e.c.e1.L0(r0);	 Catch:{ all -> 0x0407 }
    L_0x02c1:
        if (r13 != 0) goto L_0x02d3;
    L_0x02c3:
        r0 = r15.c;	 Catch:{ all -> 0x0407 }
        if (r0 == 0) goto L_0x02cc;
    L_0x02c7:
        r15.j();	 Catch:{ all -> 0x0407 }
        r15.c = r2;	 Catch:{ all -> 0x0407 }
    L_0x02cc:
        r0 = r15.b;	 Catch:{ all -> 0x0407 }
        r0 = (c.e.a.b.e.c.e1) r0;	 Catch:{ all -> 0x0407 }
        c.e.a.b.e.c.e1.Q0(r0);	 Catch:{ all -> 0x0407 }
    L_0x02d3:
        r0 = r1.j;	 Catch:{ all -> 0x0407 }
        r0 = r0.g;	 Catch:{ all -> 0x0407 }
        r9 = c.e.a.b.f.b.p.X;	 Catch:{ all -> 0x0407 }
        r0 = r0.u(r5, r9);	 Catch:{ all -> 0x0407 }
        if (r0 == 0) goto L_0x0303;
    L_0x02df:
        r0 = r15.l();	 Catch:{ all -> 0x0407 }
        r0 = (c.e.a.b.e.c.u4) r0;	 Catch:{ all -> 0x0407 }
        r0 = (c.e.a.b.e.c.e1) r0;	 Catch:{ all -> 0x0407 }
        r0 = r0.i();	 Catch:{ all -> 0x0407 }
        r9 = r17.N();	 Catch:{ all -> 0x0407 }
        r9 = r9.t(r0);	 Catch:{ all -> 0x0407 }
        r0 = r15.c;	 Catch:{ all -> 0x0407 }
        if (r0 == 0) goto L_0x02fc;
    L_0x02f7:
        r15.j();	 Catch:{ all -> 0x0407 }
        r15.c = r2;	 Catch:{ all -> 0x0407 }
    L_0x02fc:
        r0 = r15.b;	 Catch:{ all -> 0x0407 }
        r0 = (c.e.a.b.e.c.e1) r0;	 Catch:{ all -> 0x0407 }
        c.e.a.b.e.c.e1.p1(r0, r9);	 Catch:{ all -> 0x0407 }
    L_0x0303:
        r7.m(r15);	 Catch:{ all -> 0x0407 }
        r14 = r14 + 1;
        r10 = r16;
        r0 = 1;
        r9 = 0;
        goto L_0x0225;
    L_0x030e:
        r16 = r10;
        r0 = r1.j;	 Catch:{ all -> 0x0407 }
        r0 = r0.d();	 Catch:{ all -> 0x0407 }
        r6 = 2;
        r0 = r0.x(r6);	 Catch:{ all -> 0x0407 }
        if (r0 == 0) goto L_0x032e;
    L_0x031d:
        r0 = r17.N();	 Catch:{ all -> 0x0407 }
        r6 = r7.l();	 Catch:{ all -> 0x0407 }
        r6 = (c.e.a.b.e.c.u4) r6;	 Catch:{ all -> 0x0407 }
        r6 = (c.e.a.b.e.c.d1) r6;	 Catch:{ all -> 0x0407 }
        r0 = r0.z(r6);	 Catch:{ all -> 0x0407 }
        goto L_0x032f;
    L_0x032e:
        r0 = 0;
    L_0x032f:
        r17.N();	 Catch:{ all -> 0x0407 }
        r6 = r7.l();	 Catch:{ all -> 0x0407 }
        r6 = (c.e.a.b.e.c.u4) r6;	 Catch:{ all -> 0x0407 }
        r6 = (c.e.a.b.e.c.d1) r6;	 Catch:{ all -> 0x0407 }
        r14 = r6.i();	 Catch:{ all -> 0x0407 }
        r6 = c.e.a.b.f.b.p.q;	 Catch:{ all -> 0x0407 }
        r9 = 0;
        r6 = r6.a(r9);	 Catch:{ all -> 0x0407 }
        r6 = (java.lang.String) r6;	 Catch:{ all -> 0x0407 }
        r13 = new java.net.URL;	 Catch:{ MalformedURLException -> 0x03c4 }
        r13.<init>(r6);	 Catch:{ MalformedURLException -> 0x03c4 }
        r9 = r16.isEmpty();	 Catch:{ MalformedURLException -> 0x03c4 }
        if (r9 != 0) goto L_0x0354;
    L_0x0352:
        r9 = 1;
        goto L_0x0355;
    L_0x0354:
        r9 = 0;
    L_0x0355:
        b.i.b.f.J(r9);	 Catch:{ MalformedURLException -> 0x03c4 }
        r9 = r1.v;	 Catch:{ MalformedURLException -> 0x03c4 }
        if (r9 == 0) goto L_0x036a;
    L_0x035c:
        r9 = r1.j;	 Catch:{ MalformedURLException -> 0x03c4 }
        r9 = r9.d();	 Catch:{ MalformedURLException -> 0x03c4 }
        r9 = r9.f;	 Catch:{ MalformedURLException -> 0x03c4 }
        r10 = "Set uploading progress before finishing the previous upload";
        r9.a(r10);	 Catch:{ MalformedURLException -> 0x03c4 }
        goto L_0x0373;
    L_0x036a:
        r9 = new java.util.ArrayList;	 Catch:{ MalformedURLException -> 0x03c4 }
        r10 = r16;
        r9.<init>(r10);	 Catch:{ MalformedURLException -> 0x03c4 }
        r1.v = r9;	 Catch:{ MalformedURLException -> 0x03c4 }
    L_0x0373:
        r9 = r1.j;	 Catch:{ MalformedURLException -> 0x03c4 }
        r9 = r9.o();	 Catch:{ MalformedURLException -> 0x03c4 }
        r9 = r9.f;	 Catch:{ MalformedURLException -> 0x03c4 }
        r9.b(r3);	 Catch:{ MalformedURLException -> 0x03c4 }
        r3 = "?";
        if (r8 <= 0) goto L_0x038e;
    L_0x0382:
        r3 = r7.b;	 Catch:{ MalformedURLException -> 0x03c4 }
        r3 = (c.e.a.b.e.c.d1) r3;	 Catch:{ MalformedURLException -> 0x03c4 }
        r3 = r3.u();	 Catch:{ MalformedURLException -> 0x03c4 }
        r3 = r3.G1();	 Catch:{ MalformedURLException -> 0x03c4 }
    L_0x038e:
        r4 = r1.j;	 Catch:{ MalformedURLException -> 0x03c4 }
        r4 = r4.d();	 Catch:{ MalformedURLException -> 0x03c4 }
        r4 = r4.n;	 Catch:{ MalformedURLException -> 0x03c4 }
        r7 = "Uploading data. app, uncompressed size, data";
        r8 = r14.length;	 Catch:{ MalformedURLException -> 0x03c4 }
        r8 = java.lang.Integer.valueOf(r8);	 Catch:{ MalformedURLException -> 0x03c4 }
        r4.d(r7, r3, r8, r0);	 Catch:{ MalformedURLException -> 0x03c4 }
        r0 = 1;
        r1.r = r0;	 Catch:{ MalformedURLException -> 0x03c4 }
        r11 = r17.J();	 Catch:{ MalformedURLException -> 0x03c4 }
        r0 = new c.e.a.b.f.b.m9;	 Catch:{ MalformedURLException -> 0x03c4 }
        r0.m5873init(r1, r5);	 Catch:{ MalformedURLException -> 0x03c4 }
        r11.g();	 Catch:{ MalformedURLException -> 0x03c4 }
        r11.n();	 Catch:{ MalformedURLException -> 0x03c4 }
        r3 = r11.a();	 Catch:{ MalformedURLException -> 0x03c4 }
        r4 = new c.e.a.b.f.b.c4;	 Catch:{ MalformedURLException -> 0x03c4 }
        r15 = 0;
        r10 = r4;
        r12 = r5;
        r16 = r0;
        r10.m1389init(r11, r12, r13, r14, r15, r16);	 Catch:{ MalformedURLException -> 0x03c4 }
        r3.x(r4);	 Catch:{ MalformedURLException -> 0x03c4 }
        goto L_0x0401;
    L_0x03c4:
        r0 = r1.j;	 Catch:{ all -> 0x0407 }
        r0 = r0.d();	 Catch:{ all -> 0x0407 }
        r0 = r0.f;	 Catch:{ all -> 0x0407 }
        r3 = "Failed to parse upload URL. Not uploading. appId";
        r4 = c.e.a.b.f.b.q3.s(r5);	 Catch:{ all -> 0x0407 }
        r0.c(r3, r4, r6);	 Catch:{ all -> 0x0407 }
        goto L_0x0401;
    L_0x03d6:
        r1.x = r7;	 Catch:{ all -> 0x0407 }
        r5 = r17.K();	 Catch:{ all -> 0x0407 }
        r6 = c.e.a.b.f.b.p.d;	 Catch:{ all -> 0x0407 }
        r0 = 0;
        r0 = r6.a(r0);	 Catch:{ all -> 0x0407 }
        r0 = (java.lang.Long) r0;	 Catch:{ all -> 0x0407 }
        r6 = r0.longValue();	 Catch:{ all -> 0x0407 }
        r3 = r3 - r6;
        r0 = r5.B(r3);	 Catch:{ all -> 0x0407 }
        r3 = android.text.TextUtils.isEmpty(r0);	 Catch:{ all -> 0x0407 }
        if (r3 != 0) goto L_0x0401;
    L_0x03f4:
        r3 = r17.K();	 Catch:{ all -> 0x0407 }
        r0 = r3.T(r0);	 Catch:{ all -> 0x0407 }
        if (r0 == 0) goto L_0x0401;
    L_0x03fe:
        r1.n(r0);	 Catch:{ all -> 0x0407 }
    L_0x0401:
        r1.s = r2;
        r17.x();
        return;
    L_0x0407:
        r0 = move-exception;
        r1.s = r2;
        r17.x();
        throw r0;
        */
        throw new UnsupportedOperationException("Method not decompiled: c.e.a.b.f.b.k9.Q():void");
    }

    /* JADX WARNING: Removed duplicated region for block: B:59:0x01a1  */
    /* JADX WARNING: Removed duplicated region for block: B:58:0x018b  */
    /* JADX WARNING: Removed duplicated region for block: B:43:0x0122  */
    /* JADX WARNING: Removed duplicated region for block: B:42:0x010b  */
    /* JADX WARNING: Removed duplicated region for block: B:62:? A:{SYNTHETIC, RETURN} */
    /* JADX WARNING: Removed duplicated region for block: B:24:0x00a3  */
    /* JADX WARNING: Removed duplicated region for block: B:24:0x00a3  */
    /* JADX WARNING: Removed duplicated region for block: B:62:? A:{SYNTHETIC, RETURN} */
    public final void R() {
        /*
        r11 = this;
        r11.U();
        r11.P();
        r0 = r11.l;
        if (r0 != 0) goto L_0x01b6;
    L_0x000a:
        r0 = 1;
        r11.l = r0;
        r11.U();
        r1 = r11.j;
        r1 = r1.g;
        r2 = c.e.a.b.f.b.p.i0;
        r1 = r1.o(r2);
        r2 = "Storage concurrent access okay";
        r3 = 0;
        if (r1 == 0) goto L_0x0035;
    L_0x001f:
        r1 = r11.t;
        if (r1 == 0) goto L_0x0035;
    L_0x0023:
        r1 = r1.isValid();
        if (r1 == 0) goto L_0x0035;
    L_0x0029:
        r1 = r11.j;
        r1 = r1.d();
        r1 = r1.n;
        r1.a(r2);
        goto L_0x0064;
    L_0x0035:
        r1 = r11.j;
        r1 = r1.a;
        r1 = r1.getFilesDir();
        r4 = new java.io.File;
        r5 = "google_app_measurement.db";
        r4.<init>(r1, r5);
        r1 = new java.io.RandomAccessFile;	 Catch:{ FileNotFoundException -> 0x0092, IOException -> 0x0083, OverlappingFileLockException -> 0x0074 }
        r5 = "rw";
        r1.<init>(r4, r5);	 Catch:{ FileNotFoundException -> 0x0092, IOException -> 0x0083, OverlappingFileLockException -> 0x0074 }
        r1 = r1.getChannel();	 Catch:{ FileNotFoundException -> 0x0092, IOException -> 0x0083, OverlappingFileLockException -> 0x0074 }
        r11.u = r1;	 Catch:{ FileNotFoundException -> 0x0092, IOException -> 0x0083, OverlappingFileLockException -> 0x0074 }
        r1 = r1.tryLock();	 Catch:{ FileNotFoundException -> 0x0092, IOException -> 0x0083, OverlappingFileLockException -> 0x0074 }
        r11.t = r1;	 Catch:{ FileNotFoundException -> 0x0092, IOException -> 0x0083, OverlappingFileLockException -> 0x0074 }
        if (r1 == 0) goto L_0x0066;
    L_0x0059:
        r1 = r11.j;	 Catch:{ FileNotFoundException -> 0x0092, IOException -> 0x0083, OverlappingFileLockException -> 0x0074 }
        r1 = r1.d();	 Catch:{ FileNotFoundException -> 0x0092, IOException -> 0x0083, OverlappingFileLockException -> 0x0074 }
        r1 = r1.n;	 Catch:{ FileNotFoundException -> 0x0092, IOException -> 0x0083, OverlappingFileLockException -> 0x0074 }
        r1.a(r2);	 Catch:{ FileNotFoundException -> 0x0092, IOException -> 0x0083, OverlappingFileLockException -> 0x0074 }
    L_0x0064:
        r1 = 1;
        goto L_0x00a1;
    L_0x0066:
        r1 = r11.j;	 Catch:{ FileNotFoundException -> 0x0092, IOException -> 0x0083, OverlappingFileLockException -> 0x0074 }
        r1 = r1.d();	 Catch:{ FileNotFoundException -> 0x0092, IOException -> 0x0083, OverlappingFileLockException -> 0x0074 }
        r1 = r1.f;	 Catch:{ FileNotFoundException -> 0x0092, IOException -> 0x0083, OverlappingFileLockException -> 0x0074 }
        r2 = "Storage concurrent data access panic";
        r1.a(r2);	 Catch:{ FileNotFoundException -> 0x0092, IOException -> 0x0083, OverlappingFileLockException -> 0x0074 }
        goto L_0x00a0;
    L_0x0074:
        r1 = move-exception;
        r2 = r11.j;
        r2 = r2.d();
        r2 = r2.i;
        r4 = "Storage lock already acquired";
        r2.b(r4, r1);
        goto L_0x00a0;
    L_0x0083:
        r1 = move-exception;
        r2 = r11.j;
        r2 = r2.d();
        r2 = r2.f;
        r4 = "Failed to access storage lock file";
        r2.b(r4, r1);
        goto L_0x00a0;
    L_0x0092:
        r1 = move-exception;
        r2 = r11.j;
        r2 = r2.d();
        r2 = r2.f;
        r4 = "Failed to acquire storage lock";
        r2.b(r4, r1);
    L_0x00a0:
        r1 = 0;
    L_0x00a1:
        if (r1 == 0) goto L_0x01b6;
    L_0x00a3:
        r1 = r11.u;
        r11.U();
        r4 = 0;
        r2 = 4;
        r6 = "Bad channel to read from";
        if (r1 == 0) goto L_0x00ef;
    L_0x00af:
        r7 = r1.isOpen();
        if (r7 != 0) goto L_0x00b6;
    L_0x00b5:
        goto L_0x00ef;
    L_0x00b6:
        r7 = java.nio.ByteBuffer.allocate(r2);
        r1.position(r4);	 Catch:{ IOException -> 0x00e0 }
        r1 = r1.read(r7);	 Catch:{ IOException -> 0x00e0 }
        if (r1 == r2) goto L_0x00d8;
    L_0x00c3:
        r7 = -1;
        if (r1 == r7) goto L_0x00fa;
    L_0x00c6:
        r7 = r11.j;	 Catch:{ IOException -> 0x00e0 }
        r7 = r7.d();	 Catch:{ IOException -> 0x00e0 }
        r7 = r7.i;	 Catch:{ IOException -> 0x00e0 }
        r8 = "Unexpected data length. Bytes read";
        r1 = java.lang.Integer.valueOf(r1);	 Catch:{ IOException -> 0x00e0 }
        r7.b(r8, r1);	 Catch:{ IOException -> 0x00e0 }
        goto L_0x00fa;
    L_0x00d8:
        r7.flip();	 Catch:{ IOException -> 0x00e0 }
        r1 = r7.getInt();	 Catch:{ IOException -> 0x00e0 }
        goto L_0x00fb;
    L_0x00e0:
        r1 = move-exception;
        r7 = r11.j;
        r7 = r7.d();
        r7 = r7.f;
        r8 = "Failed to read from channel";
        r7.b(r8, r1);
        goto L_0x00fa;
    L_0x00ef:
        r1 = r11.j;
        r1 = r1.d();
        r1 = r1.f;
        r1.a(r6);
    L_0x00fa:
        r1 = 0;
    L_0x00fb:
        r7 = r11.j;
        r7 = r7.z();
        r7.t();
        r7 = r7.e;
        r11.U();
        if (r1 <= r7) goto L_0x0122;
    L_0x010b:
        r0 = r11.j;
        r0 = r0.d();
        r0 = r0.f;
        r1 = java.lang.Integer.valueOf(r1);
        r2 = java.lang.Integer.valueOf(r7);
        r3 = "Panic: can't downgrade version. Previous, current version";
        r0.c(r3, r1, r2);
        goto L_0x01b6;
    L_0x0122:
        if (r1 >= r7) goto L_0x01b6;
    L_0x0124:
        r8 = r11.u;
        r11.U();
        if (r8 == 0) goto L_0x017d;
    L_0x012b:
        r9 = r8.isOpen();
        if (r9 != 0) goto L_0x0132;
    L_0x0131:
        goto L_0x017d;
    L_0x0132:
        r2 = java.nio.ByteBuffer.allocate(r2);
        r2.putInt(r7);
        r2.flip();
        r8.truncate(r4);	 Catch:{ IOException -> 0x016e }
        r4 = r11.j;	 Catch:{ IOException -> 0x016e }
        r4 = r4.g;	 Catch:{ IOException -> 0x016e }
        r5 = c.e.a.b.f.b.p.s0;	 Catch:{ IOException -> 0x016e }
        r4.o(r5);	 Catch:{ IOException -> 0x016e }
        r8.write(r2);	 Catch:{ IOException -> 0x016e }
        r8.force(r0);	 Catch:{ IOException -> 0x016e }
        r4 = r8.size();	 Catch:{ IOException -> 0x016e }
        r9 = 4;
        r2 = (r4 > r9 ? 1 : (r4 == r9 ? 0 : -1));
        if (r2 == 0) goto L_0x0189;
    L_0x0158:
        r2 = r11.j;	 Catch:{ IOException -> 0x016e }
        r2 = r2.d();	 Catch:{ IOException -> 0x016e }
        r2 = r2.f;	 Catch:{ IOException -> 0x016e }
        r4 = "Error writing to channel. Bytes written";
        r5 = r8.size();	 Catch:{ IOException -> 0x016e }
        r5 = java.lang.Long.valueOf(r5);	 Catch:{ IOException -> 0x016e }
        r2.b(r4, r5);	 Catch:{ IOException -> 0x016e }
        goto L_0x0189;
    L_0x016e:
        r0 = move-exception;
        r2 = r11.j;
        r2 = r2.d();
        r2 = r2.f;
        r4 = "Failed to write to channel";
        r2.b(r4, r0);
        goto L_0x0188;
    L_0x017d:
        r0 = r11.j;
        r0 = r0.d();
        r0 = r0.f;
        r0.a(r6);
    L_0x0188:
        r0 = 0;
    L_0x0189:
        if (r0 == 0) goto L_0x01a1;
    L_0x018b:
        r0 = r11.j;
        r0 = r0.d();
        r0 = r0.n;
        r1 = java.lang.Integer.valueOf(r1);
        r2 = java.lang.Integer.valueOf(r7);
        r3 = "Storage version upgraded. Previous, current version";
        r0.c(r3, r1, r2);
        goto L_0x01b6;
    L_0x01a1:
        r0 = r11.j;
        r0 = r0.d();
        r0 = r0.f;
        r1 = java.lang.Integer.valueOf(r1);
        r2 = java.lang.Integer.valueOf(r7);
        r3 = "Storage version upgrade failed. Previous, current version";
        r0.c(r3, r1, r2);
    L_0x01b6:
        return;
        */
        throw new UnsupportedOperationException("Method not decompiled: c.e.a.b.f.b.k9.R():void");
    }

    public final b4 S() {
        b4 b4Var = this.d;
        if (b4Var != null) {
            return b4Var;
        }
        throw new IllegalStateException("Network broadcast receiver not created");
    }

    public final h9 T() {
        C(this.e);
        return this.e;
    }

    public final void U() {
        this.j.a().g();
    }

    public final long V() {
        Objects.requireNonNull((c) this.j.n);
        long currentTimeMillis = System.currentTimeMillis();
        d4 o = this.j.o();
        o.o();
        o.g();
        long a = o.i.a();
        if (a == 0) {
            a = 1 + ((long) o.k().v0().nextInt(86400000));
            o.i.b(a);
        }
        return ((((currentTimeMillis + a) / 1000) / 60) / 60) / 24;
    }

    @Deprecated
    public final String W() {
        this.j.t().v0().nextBytes(new byte[16]);
        return String.format(Locale.US, "%032x", new Object[]{new BigInteger(1, r0)});
    }

    public final r4 a() {
        return this.j.a();
    }

    public final b b() {
        return this.j.n;
    }

    public final d c(String str) {
        d dVar = d.c;
        if (!v8.a() || !this.j.g.o(p.J0)) {
            return dVar;
        }
        U();
        P();
        dVar = (d) this.y.get(str);
        if (dVar != null) {
            return dVar;
        }
        g K = K();
        Objects.requireNonNull(K);
        Objects.requireNonNull(str, "null reference");
        K.g();
        K.n();
        String str2 = "select consent_state from consent_settings where app_id=? limit 1;";
        Cursor cursor = null;
        try {
            String string;
            cursor = K.t().rawQuery(str2, new String[]{str});
            if (cursor.moveToFirst()) {
                string = cursor.getString(0);
                cursor.close();
            } else {
                cursor.close();
                string = "G1";
            }
            dVar = d.b(string);
            s(str, dVar);
            return dVar;
        } catch (SQLiteException e) {
            K.d().f.c("Database error", str2, e);
            throw e;
        } catch (Throwable th) {
            if (cursor != null) {
                cursor.close();
            }
        }
    }

    public final q3 d() {
        return this.j.d();
    }

    public final Context e() {
        return this.j.a;
    }

    public final String g(d dVar) {
        if (v8.a() && this.j.g.o(p.J0) && !dVar.k()) {
            return null;
        }
        return W();
    }

    public final ga h() {
        return this.j.f;
    }

    public final void k(c.e.a.b.e.c.e1.a aVar, long j, boolean z) {
        Object obj;
        String str = z ? "_se" : "_lte";
        u9 Y = K().Y(aVar.f0(), str);
        String f0;
        if (Y == null || Y.e == null) {
            f0 = aVar.f0();
            Objects.requireNonNull((c) this.j.n);
            Y = new u9(f0, "auto", str, System.currentTimeMillis(), Long.valueOf(j));
        } else {
            f0 = aVar.f0();
            Objects.requireNonNull((c) this.j.n);
            Y = new u9(f0, "auto", str, System.currentTimeMillis(), Long.valueOf(((Long) Y.e).longValue() + j));
        }
        c.e.a.b.e.c.i1.a L = i1.L();
        L.n(str);
        Objects.requireNonNull((c) this.j.n);
        L.m(System.currentTimeMillis());
        L.o(((Long) r8.e).longValue());
        i1 i1Var = (i1) ((u4) L.l());
        int s = q9.s(aVar, str);
        if (s >= 0) {
            if (aVar.c) {
                aVar.j();
                aVar.c = false;
            }
            e1.x((e1) aVar.b, s, i1Var);
            obj = 1;
        } else {
            obj = null;
        }
        if (obj == null) {
            if (aVar.c) {
                aVar.j();
                aVar.c = false;
            }
            e1.A((e1) aVar.b, i1Var);
        }
        if (j > 0) {
            K().M(r8);
            this.j.d().n.c("Updated engagement user property. scope, value", z ? "session-scoped" : "lifetime", r8.e);
        }
    }

    public final void l(zzaq zzaq, zzn zzn) {
        zzaq zzaq2 = zzaq;
        zzn zzn2 = zzn;
        Objects.requireNonNull(zzn2, "null reference");
        f.N(zzn2.a);
        U();
        P();
        String str = zzn2.a;
        long j = zzaq2.d;
        N();
        if (!q9.O(zzaq, zzn)) {
            return;
        }
        if (zzn2.h) {
            List list = zzn2.u;
            if (list != null) {
                if (list.contains(zzaq2.a)) {
                    Bundle c = zzaq2.b.c();
                    c.putLong("ga_safelisted", 1);
                    zzaq2 = new zzaq(zzaq2.a, new zzap(c), zzaq2.c, zzaq2.d);
                } else {
                    this.j.d().m.d("Dropping non-safelisted event. appId, event name, origin", str, zzaq2.a, zzaq2.c);
                    return;
                }
            }
            K().b0();
            try {
                g K = K();
                f.N(str);
                K.g();
                K.n();
                int i = (j > 0 ? 1 : (j == 0 ? 0 : -1));
                if (i < 0) {
                    K.d().i.c("Invalid time querying timed out conditional properties", q3.s(str), Long.valueOf(j));
                    list = Collections.emptyList();
                } else {
                    list = K.F("active=0 and app_id=? and abs(? - creation_timestamp) > trigger_timeout", new String[]{str, String.valueOf(j)});
                }
                for (zzz zzz : r4) {
                    if (zzz != null) {
                        this.j.d().n.d("User property timed out", zzz.a, this.j.u().y(zzz.c.b), zzz.c.b());
                        zzaq zzaq3 = zzz.g;
                        if (zzaq3 != null) {
                            I(new zzaq(zzaq3, j), zzn2);
                        }
                        K().a0(str, zzz.c.b);
                    }
                }
                K = K();
                f.N(str);
                K.g();
                K.n();
                if (i < 0) {
                    K.d().i.c("Invalid time querying expired conditional properties", q3.s(str), Long.valueOf(j));
                    list = Collections.emptyList();
                } else {
                    list = K.F("active<>0 and app_id=? and abs(? - triggered_timestamp) > time_to_live", new String[]{str, String.valueOf(j)});
                }
                ArrayList arrayList = new ArrayList(r4.size());
                for (zzz zzz2 : r4) {
                    if (zzz2 != null) {
                        this.j.d().n.d("User property expired", zzz2.a, this.j.u().y(zzz2.c.b), zzz2.c.b());
                        K().V(str, zzz2.c.b);
                        zzaq zzaq4 = zzz2.k;
                        if (zzaq4 != null) {
                            arrayList.add(zzaq4);
                        }
                        K().a0(str, zzz2.c.b);
                    }
                }
                int size = arrayList.size();
                int i2 = 0;
                while (i2 < size) {
                    Object obj = arrayList.get(i2);
                    i2++;
                    I(new zzaq((zzaq) obj, j), zzn2);
                }
                K = K();
                String str2 = zzaq2.a;
                f.N(str);
                f.N(str2);
                K.g();
                K.n();
                List emptyList;
                if (i < 0) {
                    K.d().i.d("Invalid time querying triggered conditional properties", q3.s(str), K.j().u(str2), Long.valueOf(j));
                    emptyList = Collections.emptyList();
                } else {
                    emptyList = K.F("active=0 and app_id=? and trigger_event_name=? and abs(? - creation_timestamp) <= trigger_timeout", new String[]{str, str2, String.valueOf(j)});
                }
                ArrayList arrayList2 = new ArrayList(emptyList.size());
                for (zzz zzz3 : emptyList) {
                    if (zzz3 != null) {
                        zzku zzku = zzz3.c;
                        u9 u9Var = r4;
                        u9 u9Var2 = new u9(zzz3.a, zzz3.b, zzku.b, j, zzku.b());
                        if (K().M(u9Var)) {
                            this.j.d().n.d("User property triggered", zzz3.a, this.j.u().y(u9Var.c), u9Var.e);
                        } else {
                            this.j.d().f.d("Too many active user properties, ignoring", q3.s(zzz3.a), this.j.u().y(u9Var.c), u9Var.e);
                        }
                        zzaq zzaq5 = zzz3.i;
                        if (zzaq5 != null) {
                            arrayList2.add(zzaq5);
                        }
                        zzz3.c = new zzku(u9Var);
                        zzz3.e = true;
                        K().N(zzz3);
                    }
                }
                I(zzaq2, zzn2);
                int size2 = arrayList2.size();
                int i3 = 0;
                while (i3 < size2) {
                    Object obj2 = arrayList2.get(i3);
                    i3++;
                    I(new zzaq((zzaq) obj2, j), zzn2);
                }
                K().s();
            } finally {
                K().e0();
            }
        } else {
            G(zzn2);
        }
    }

    public final void m(zzaq zzaq, String str) {
        zzaq zzaq2 = zzaq;
        String str2 = str;
        a4 T = K().T(str2);
        if (T == null || TextUtils.isEmpty(T.M())) {
            this.j.d().m.b("No app data available; dropping event", str2);
            return;
        }
        boolean z;
        String B;
        String d;
        zzn zzn;
        zzn zzn2;
        Boolean z2 = z(T);
        if (z2 == null) {
            if (!"_ui".equals(zzaq2.a)) {
                this.j.d().i.b("Could not find package. appId", q3.s(str));
            }
        } else if (!z2.booleanValue()) {
            this.j.d().f.b("App version does not match; dropping event. appId", q3.s(str));
            return;
        }
        String v = T.v();
        String M = T.M();
        long N = T.N();
        String O = T.O();
        long P = T.P();
        long Q = T.Q();
        boolean T2 = T.T();
        String H = T.H();
        long g = T.g();
        boolean h = T.h();
        boolean i = T.i();
        String y = T.y();
        Boolean j = T.j();
        long S = T.S();
        List k = T.k();
        if (fa.a()) {
            z = T2;
            if (this.j.g.u(T.o(), p.j0)) {
                B = T.B();
                d = (v8.a() || !this.j.g.o(p.J0)) ? "" : c(str2).d();
                zzn = zzn2;
                zzn2 = new zzn(str, v, M, N, O, P, Q, null, z, false, H, g, 0, 0, h, i, false, y, j, S, k, B, d);
                B(zzaq, zzn);
            }
        }
        z = T2;
        B = null;
        if (v8.a()) {
        }
        zzn = zzn2;
        zzn2 = new zzn(str, v, M, N, O, P, Q, null, z, false, H, g, 0, 0, h, i, false, y, j, S, k, B, d);
        B(zzaq, zzn);
    }

    /* JADX WARNING: Missing block: B:25:0x009b, code skipped:
            if (android.text.TextUtils.isEmpty(r2) != false) goto L_0x009d;
     */
    public final void n(c.e.a.b.f.b.a4 r12) {
        /*
        r11 = this;
        r11.U();
        r0 = c.e.a.b.e.c.fa.a();
        if (r0 == 0) goto L_0x0045;
    L_0x0009:
        r0 = r11.j;
        r0 = r0.g;
        r1 = r12.o();
        r2 = c.e.a.b.f.b.p.j0;
        r0 = r0.u(r1, r2);
        if (r0 == 0) goto L_0x0045;
    L_0x0019:
        r0 = r12.v();
        r0 = android.text.TextUtils.isEmpty(r0);
        if (r0 == 0) goto L_0x0067;
    L_0x0023:
        r0 = r12.B();
        r0 = android.text.TextUtils.isEmpty(r0);
        if (r0 == 0) goto L_0x0067;
    L_0x002d:
        r0 = r12.y();
        r0 = android.text.TextUtils.isEmpty(r0);
        if (r0 == 0) goto L_0x0067;
    L_0x0037:
        r2 = r12.o();
        r3 = 204; // 0xcc float:2.86E-43 double:1.01E-321;
        r4 = 0;
        r5 = 0;
        r6 = 0;
        r1 = r11;
        r1.r(r2, r3, r4, r5, r6);
        return;
    L_0x0045:
        r0 = r12.v();
        r0 = android.text.TextUtils.isEmpty(r0);
        if (r0 == 0) goto L_0x0067;
    L_0x004f:
        r0 = r12.y();
        r0 = android.text.TextUtils.isEmpty(r0);
        if (r0 == 0) goto L_0x0067;
    L_0x0059:
        r2 = r12.o();
        r3 = 204; // 0xcc float:2.86E-43 double:1.01E-321;
        r4 = 0;
        r5 = 0;
        r6 = 0;
        r1 = r11;
        r1.r(r2, r3, r4, r5, r6);
        return;
    L_0x0067:
        r0 = r11.j;
        r0 = r0.g;
        java.util.Objects.requireNonNull(r0);
        r1 = new android.net.Uri$Builder;
        r1.<init>();
        r2 = r12.v();
        r3 = android.text.TextUtils.isEmpty(r2);
        if (r3 == 0) goto L_0x00a1;
    L_0x007d:
        r2 = c.e.a.b.e.c.fa.a();
        if (r2 == 0) goto L_0x009d;
    L_0x0083:
        r0 = r0.a;
        r0 = r0.g;
        r2 = r12.o();
        r3 = c.e.a.b.f.b.p.j0;
        r0 = r0.u(r2, r3);
        if (r0 == 0) goto L_0x009d;
    L_0x0093:
        r2 = r12.B();
        r0 = android.text.TextUtils.isEmpty(r2);
        if (r0 == 0) goto L_0x00a1;
    L_0x009d:
        r2 = r12.y();
    L_0x00a1:
        r0 = c.e.a.b.f.b.p.e;
        r3 = 0;
        r0 = r0.a(r3);
        r0 = (java.lang.String) r0;
        r0 = r1.scheme(r0);
        r4 = c.e.a.b.f.b.p.f;
        r4 = r4.a(r3);
        r4 = (java.lang.String) r4;
        r0 = r0.encodedAuthority(r4);
        r4 = "config/app/";
        r2 = java.lang.String.valueOf(r2);
        r5 = r2.length();
        if (r5 == 0) goto L_0x00cb;
    L_0x00c6:
        r2 = r4.concat(r2);
        goto L_0x00d0;
    L_0x00cb:
        r2 = new java.lang.String;
        r2.<init>(r4);
    L_0x00d0:
        r0 = r0.path(r2);
        r2 = r12.s();
        r4 = "app_instance_id";
        r0 = r0.appendQueryParameter(r4, r2);
        r2 = "platform";
        r4 = "android";
        r0 = r0.appendQueryParameter(r2, r4);
        r2 = "gmp_version";
        r4 = "33025";
        r0.appendQueryParameter(r2, r4);
        r0 = r1.build();
        r0 = r0.toString();
        r7 = new java.net.URL;	 Catch:{ MalformedURLException -> 0x0162 }
        r7.<init>(r0);	 Catch:{ MalformedURLException -> 0x0162 }
        r1 = r11.j;	 Catch:{ MalformedURLException -> 0x0162 }
        r1 = r1.d();	 Catch:{ MalformedURLException -> 0x0162 }
        r1 = r1.n;	 Catch:{ MalformedURLException -> 0x0162 }
        r2 = "Fetching remote configuration";
        r4 = r12.o();	 Catch:{ MalformedURLException -> 0x0162 }
        r1.b(r2, r4);	 Catch:{ MalformedURLException -> 0x0162 }
        r1 = r11.H();	 Catch:{ MalformedURLException -> 0x0162 }
        r2 = r12.o();	 Catch:{ MalformedURLException -> 0x0162 }
        r1 = r1.s(r2);	 Catch:{ MalformedURLException -> 0x0162 }
        r2 = r11.H();	 Catch:{ MalformedURLException -> 0x0162 }
        r4 = r12.o();	 Catch:{ MalformedURLException -> 0x0162 }
        r2.g();	 Catch:{ MalformedURLException -> 0x0162 }
        r2 = r2.i;	 Catch:{ MalformedURLException -> 0x0162 }
        r2 = r2.get(r4);	 Catch:{ MalformedURLException -> 0x0162 }
        r2 = (java.lang.String) r2;	 Catch:{ MalformedURLException -> 0x0162 }
        if (r1 == 0) goto L_0x013c;
    L_0x012c:
        r1 = android.text.TextUtils.isEmpty(r2);	 Catch:{ MalformedURLException -> 0x0162 }
        if (r1 != 0) goto L_0x013c;
    L_0x0132:
        r3 = new b.f.a;	 Catch:{ MalformedURLException -> 0x0162 }
        r3.m5038init();	 Catch:{ MalformedURLException -> 0x0162 }
        r1 = "If-Modified-Since";
        r3.put(r1, r2);	 Catch:{ MalformedURLException -> 0x0162 }
    L_0x013c:
        r9 = r3;
        r1 = 1;
        r11.q = r1;	 Catch:{ MalformedURLException -> 0x0162 }
        r5 = r11.J();	 Catch:{ MalformedURLException -> 0x0162 }
        r6 = r12.o();	 Catch:{ MalformedURLException -> 0x0162 }
        r10 = new c.e.a.b.f.b.l9;	 Catch:{ MalformedURLException -> 0x0162 }
        r10.m5866init(r11);	 Catch:{ MalformedURLException -> 0x0162 }
        r5.g();	 Catch:{ MalformedURLException -> 0x0162 }
        r5.n();	 Catch:{ MalformedURLException -> 0x0162 }
        r1 = r5.a();	 Catch:{ MalformedURLException -> 0x0162 }
        r2 = new c.e.a.b.f.b.c4;	 Catch:{ MalformedURLException -> 0x0162 }
        r8 = 0;
        r4 = r2;
        r4.m1389init(r5, r6, r7, r8, r9, r10);	 Catch:{ MalformedURLException -> 0x0162 }
        r1.x(r2);	 Catch:{ MalformedURLException -> 0x0162 }
        return;
    L_0x0162:
        r1 = r11.j;
        r1 = r1.d();
        r1 = r1.f;
        r12 = r12.o();
        r12 = c.e.a.b.f.b.q3.s(r12);
        r2 = "Failed to parse config URL. Not fetching. appId";
        r1.c(r2, r12, r0);
        return;
        */
        throw new UnsupportedOperationException("Method not decompiled: c.e.a.b.f.b.k9.n(c.e.a.b.f.b.a4):void");
    }

    public final void o(zzku zzku, zzn zzn) {
        U();
        P();
        if (!L(zzn)) {
            return;
        }
        if (zzn.h) {
            int h0 = this.j.t().h0(zzku.b);
            String E;
            if (h0 != 0) {
                this.j.t();
                E = t9.E(zzku.b, 24, true);
                String str = zzku.b;
                this.j.t().S(this.z, zzn.a, h0, "_ev", E, str != null ? str.length() : 0);
                return;
            }
            int i0 = this.j.t().i0(zzku.b, zzku.b());
            if (i0 != 0) {
                this.j.t();
                String E2 = t9.E(zzku.b, 24, true);
                Object b = zzku.b();
                int length = (b == null || !((b instanceof String) || (b instanceof CharSequence))) ? 0 : String.valueOf(b).length();
                this.j.t().S(this.z, zzn.a, i0, "_ev", E2, length);
                return;
            }
            Object n0 = this.j.t().n0(zzku.b, zzku.b());
            if (n0 != null) {
                u9 Y;
                if ("_sid".equals(zzku.b)) {
                    long j = zzku.c;
                    E = zzku.f;
                    long j2 = 0;
                    Y = K().Y(zzn.a, "_sno");
                    if (Y != null) {
                        Object obj = Y.e;
                        if (obj instanceof Long) {
                            j2 = ((Long) obj).longValue();
                            o(new zzku("_sno", j, Long.valueOf(j2 + 1), E), zzn);
                        }
                    }
                    if (Y != null) {
                        this.j.d().i.b("Retrieved last session number from database does not contain a valid (long) value", Y.e);
                    }
                    l z = K().z(zzn.a, "_s");
                    if (z != null) {
                        j2 = z.c;
                        this.j.d().n.b("Backfill the session number. Last used session number", Long.valueOf(j2));
                    }
                    o(new zzku("_sno", j, Long.valueOf(j2 + 1), E), zzn);
                }
                Y = new u9(zzn.a, zzku.f, zzku.b, zzku.c, n0);
                this.j.d().n.c("Setting user property", this.j.u().y(Y.c), n0);
                K().b0();
                try {
                    G(zzn);
                    boolean M = K().M(Y);
                    K().s();
                    if (!M) {
                        this.j.d().f.c("Too many unique user properties are set. Ignoring user property", this.j.u().y(Y.c), Y.e);
                        this.j.t().S(this.z, zzn.a, 9, null, null, 0);
                    }
                    K().e0();
                    return;
                } catch (Throwable th) {
                    K().e0();
                }
            } else {
                return;
            }
        }
        G(zzn);
    }

    public final void p(zzn zzn) {
        String str = "app_id=?";
        if (this.v != null) {
            ArrayList arrayList = new ArrayList();
            this.w = arrayList;
            arrayList.addAll(this.v);
        }
        g K = K();
        String str2 = zzn.a;
        f.N(str2);
        K.g();
        K.n();
        try {
            SQLiteDatabase t = K.t();
            String[] strArr = new String[]{str2};
            int delete = (((((((((t.delete("apps", str, strArr) + 0) + t.delete("events", str, strArr)) + t.delete("user_attributes", str, strArr)) + t.delete("conditional_properties", str, strArr)) + t.delete("raw_events", str, strArr)) + t.delete("raw_events_metadata", str, strArr)) + t.delete("queue", str, strArr)) + t.delete("audience_filter_values", str, strArr)) + t.delete("main_event_params", str, strArr)) + t.delete("default_event_params", str, strArr);
            if (delete > 0) {
                K.d().n.c("Reset analytics data. app, records", str2, Integer.valueOf(delete));
            }
        } catch (SQLiteException e) {
            K.d().f.c("Error resetting analytics data. appId, error", q3.s(str2), e);
        }
        if (zzn.h) {
            E(zzn);
        }
    }

    /* JADX WARNING: Removed duplicated region for block: B:24:0x00d3 A:{Catch:{ all -> 0x01a4 }} */
    /* JADX WARNING: Removed duplicated region for block: B:35:0x016e A:{Catch:{ all -> 0x01a4 }} */
    /* JADX WARNING: Removed duplicated region for block: B:34:0x014a A:{Catch:{ all -> 0x01a4 }} */
    public final void q(com.google.android.gms.measurement.internal.zzz r11, com.google.android.gms.measurement.internal.zzn r12) {
        /*
        r10 = this;
        r0 = "null reference";
        java.util.Objects.requireNonNull(r11, r0);
        r1 = r11.a;
        b.i.b.f.N(r1);
        r1 = r11.b;
        java.util.Objects.requireNonNull(r1, r0);
        r1 = r11.c;
        java.util.Objects.requireNonNull(r1, r0);
        r0 = r11.c;
        r0 = r0.b;
        b.i.b.f.N(r0);
        r10.U();
        r10.P();
        r0 = r10.L(r12);
        if (r0 != 0) goto L_0x0028;
    L_0x0027:
        return;
    L_0x0028:
        r0 = r12.h;
        if (r0 != 0) goto L_0x0030;
    L_0x002c:
        r10.G(r12);
        return;
    L_0x0030:
        r0 = new com.google.android.gms.measurement.internal.zzz;
        r0.m8209init(r11);
        r11 = 0;
        r0.e = r11;
        r1 = r10.K();
        r1.b0();
        r1 = r10.K();	 Catch:{ all -> 0x01a4 }
        r2 = r0.a;	 Catch:{ all -> 0x01a4 }
        r3 = r0.c;	 Catch:{ all -> 0x01a4 }
        r3 = r3.b;	 Catch:{ all -> 0x01a4 }
        r1 = r1.Z(r2, r3);	 Catch:{ all -> 0x01a4 }
        if (r1 == 0) goto L_0x0078;
    L_0x004f:
        r2 = r1.b;	 Catch:{ all -> 0x01a4 }
        r3 = r0.b;	 Catch:{ all -> 0x01a4 }
        r2 = r2.equals(r3);	 Catch:{ all -> 0x01a4 }
        if (r2 != 0) goto L_0x0078;
    L_0x0059:
        r2 = r10.j;	 Catch:{ all -> 0x01a4 }
        r2 = r2.d();	 Catch:{ all -> 0x01a4 }
        r2 = r2.i;	 Catch:{ all -> 0x01a4 }
        r3 = "Updating a conditional user property with different origin. name, origin, origin (from DB)";
        r4 = r10.j;	 Catch:{ all -> 0x01a4 }
        r4 = r4.u();	 Catch:{ all -> 0x01a4 }
        r5 = r0.c;	 Catch:{ all -> 0x01a4 }
        r5 = r5.b;	 Catch:{ all -> 0x01a4 }
        r4 = r4.y(r5);	 Catch:{ all -> 0x01a4 }
        r5 = r0.b;	 Catch:{ all -> 0x01a4 }
        r6 = r1.b;	 Catch:{ all -> 0x01a4 }
        r2.d(r3, r4, r5, r6);	 Catch:{ all -> 0x01a4 }
    L_0x0078:
        r2 = 1;
        if (r1 == 0) goto L_0x00ae;
    L_0x007b:
        r3 = r1.e;	 Catch:{ all -> 0x01a4 }
        if (r3 == 0) goto L_0x00ae;
    L_0x007f:
        r2 = r1.b;	 Catch:{ all -> 0x01a4 }
        r0.b = r2;	 Catch:{ all -> 0x01a4 }
        r4 = r1.d;	 Catch:{ all -> 0x01a4 }
        r0.d = r4;	 Catch:{ all -> 0x01a4 }
        r4 = r1.h;	 Catch:{ all -> 0x01a4 }
        r0.h = r4;	 Catch:{ all -> 0x01a4 }
        r2 = r1.f;	 Catch:{ all -> 0x01a4 }
        r0.f = r2;	 Catch:{ all -> 0x01a4 }
        r2 = r1.i;	 Catch:{ all -> 0x01a4 }
        r0.i = r2;	 Catch:{ all -> 0x01a4 }
        r0.e = r3;	 Catch:{ all -> 0x01a4 }
        r2 = new com.google.android.gms.measurement.internal.zzku;	 Catch:{ all -> 0x01a4 }
        r3 = r0.c;	 Catch:{ all -> 0x01a4 }
        r5 = r3.b;	 Catch:{ all -> 0x01a4 }
        r4 = r1.c;	 Catch:{ all -> 0x01a4 }
        r6 = r4.c;	 Catch:{ all -> 0x01a4 }
        r8 = r3.b();	 Catch:{ all -> 0x01a4 }
        r1 = r1.c;	 Catch:{ all -> 0x01a4 }
        r9 = r1.f;	 Catch:{ all -> 0x01a4 }
        r4 = r2;
        r4.m8204init(r5, r6, r8, r9);	 Catch:{ all -> 0x01a4 }
        r0.c = r2;	 Catch:{ all -> 0x01a4 }
        goto L_0x00cf;
    L_0x00ae:
        r1 = r0.f;	 Catch:{ all -> 0x01a4 }
        r1 = android.text.TextUtils.isEmpty(r1);	 Catch:{ all -> 0x01a4 }
        if (r1 == 0) goto L_0x00cf;
    L_0x00b6:
        r11 = new com.google.android.gms.measurement.internal.zzku;	 Catch:{ all -> 0x01a4 }
        r1 = r0.c;	 Catch:{ all -> 0x01a4 }
        r4 = r1.b;	 Catch:{ all -> 0x01a4 }
        r5 = r0.d;	 Catch:{ all -> 0x01a4 }
        r7 = r1.b();	 Catch:{ all -> 0x01a4 }
        r1 = r0.c;	 Catch:{ all -> 0x01a4 }
        r8 = r1.f;	 Catch:{ all -> 0x01a4 }
        r3 = r11;
        r3.m8204init(r4, r5, r7, r8);	 Catch:{ all -> 0x01a4 }
        r0.c = r11;	 Catch:{ all -> 0x01a4 }
        r0.e = r2;	 Catch:{ all -> 0x01a4 }
        r11 = 1;
    L_0x00cf:
        r1 = r0.e;	 Catch:{ all -> 0x01a4 }
        if (r1 == 0) goto L_0x0140;
    L_0x00d3:
        r1 = r0.c;	 Catch:{ all -> 0x01a4 }
        r9 = new c.e.a.b.f.b.u9;	 Catch:{ all -> 0x01a4 }
        r3 = r0.a;	 Catch:{ all -> 0x01a4 }
        r4 = r0.b;	 Catch:{ all -> 0x01a4 }
        r5 = r1.b;	 Catch:{ all -> 0x01a4 }
        r6 = r1.c;	 Catch:{ all -> 0x01a4 }
        r8 = r1.b();	 Catch:{ all -> 0x01a4 }
        r2 = r9;
        r2.m1502init(r3, r4, r5, r6, r8);	 Catch:{ all -> 0x01a4 }
        r1 = r10.K();	 Catch:{ all -> 0x01a4 }
        r1 = r1.M(r9);	 Catch:{ all -> 0x01a4 }
        if (r1 == 0) goto L_0x010f;
    L_0x00f1:
        r1 = r10.j;	 Catch:{ all -> 0x01a4 }
        r1 = r1.d();	 Catch:{ all -> 0x01a4 }
        r1 = r1.m;	 Catch:{ all -> 0x01a4 }
        r2 = "User property updated immediately";
        r3 = r0.a;	 Catch:{ all -> 0x01a4 }
        r4 = r10.j;	 Catch:{ all -> 0x01a4 }
        r4 = r4.u();	 Catch:{ all -> 0x01a4 }
        r5 = r9.c;	 Catch:{ all -> 0x01a4 }
        r4 = r4.y(r5);	 Catch:{ all -> 0x01a4 }
        r5 = r9.e;	 Catch:{ all -> 0x01a4 }
        r1.d(r2, r3, r4, r5);	 Catch:{ all -> 0x01a4 }
        goto L_0x0130;
    L_0x010f:
        r1 = r10.j;	 Catch:{ all -> 0x01a4 }
        r1 = r1.d();	 Catch:{ all -> 0x01a4 }
        r1 = r1.f;	 Catch:{ all -> 0x01a4 }
        r2 = "(2)Too many active user properties, ignoring";
        r3 = r0.a;	 Catch:{ all -> 0x01a4 }
        r3 = c.e.a.b.f.b.q3.s(r3);	 Catch:{ all -> 0x01a4 }
        r4 = r10.j;	 Catch:{ all -> 0x01a4 }
        r4 = r4.u();	 Catch:{ all -> 0x01a4 }
        r5 = r9.c;	 Catch:{ all -> 0x01a4 }
        r4 = r4.y(r5);	 Catch:{ all -> 0x01a4 }
        r5 = r9.e;	 Catch:{ all -> 0x01a4 }
        r1.d(r2, r3, r4, r5);	 Catch:{ all -> 0x01a4 }
    L_0x0130:
        if (r11 == 0) goto L_0x0140;
    L_0x0132:
        r11 = r0.i;	 Catch:{ all -> 0x01a4 }
        if (r11 == 0) goto L_0x0140;
    L_0x0136:
        r1 = new com.google.android.gms.measurement.internal.zzaq;	 Catch:{ all -> 0x01a4 }
        r2 = r0.d;	 Catch:{ all -> 0x01a4 }
        r1.m8199init(r11, r2);	 Catch:{ all -> 0x01a4 }
        r10.I(r1, r12);	 Catch:{ all -> 0x01a4 }
    L_0x0140:
        r11 = r10.K();	 Catch:{ all -> 0x01a4 }
        r11 = r11.N(r0);	 Catch:{ all -> 0x01a4 }
        if (r11 == 0) goto L_0x016e;
    L_0x014a:
        r11 = r10.j;	 Catch:{ all -> 0x01a4 }
        r11 = r11.d();	 Catch:{ all -> 0x01a4 }
        r11 = r11.m;	 Catch:{ all -> 0x01a4 }
        r12 = "Conditional property added";
        r1 = r0.a;	 Catch:{ all -> 0x01a4 }
        r2 = r10.j;	 Catch:{ all -> 0x01a4 }
        r2 = r2.u();	 Catch:{ all -> 0x01a4 }
        r3 = r0.c;	 Catch:{ all -> 0x01a4 }
        r3 = r3.b;	 Catch:{ all -> 0x01a4 }
        r2 = r2.y(r3);	 Catch:{ all -> 0x01a4 }
        r0 = r0.c;	 Catch:{ all -> 0x01a4 }
        r0 = r0.b();	 Catch:{ all -> 0x01a4 }
        r11.d(r12, r1, r2, r0);	 Catch:{ all -> 0x01a4 }
        goto L_0x0195;
    L_0x016e:
        r11 = r10.j;	 Catch:{ all -> 0x01a4 }
        r11 = r11.d();	 Catch:{ all -> 0x01a4 }
        r11 = r11.f;	 Catch:{ all -> 0x01a4 }
        r12 = "Too many conditional properties, ignoring";
        r1 = r0.a;	 Catch:{ all -> 0x01a4 }
        r1 = c.e.a.b.f.b.q3.s(r1);	 Catch:{ all -> 0x01a4 }
        r2 = r10.j;	 Catch:{ all -> 0x01a4 }
        r2 = r2.u();	 Catch:{ all -> 0x01a4 }
        r3 = r0.c;	 Catch:{ all -> 0x01a4 }
        r3 = r3.b;	 Catch:{ all -> 0x01a4 }
        r2 = r2.y(r3);	 Catch:{ all -> 0x01a4 }
        r0 = r0.c;	 Catch:{ all -> 0x01a4 }
        r0 = r0.b();	 Catch:{ all -> 0x01a4 }
        r11.d(r12, r1, r2, r0);	 Catch:{ all -> 0x01a4 }
    L_0x0195:
        r11 = r10.K();	 Catch:{ all -> 0x01a4 }
        r11.s();	 Catch:{ all -> 0x01a4 }
        r11 = r10.K();
        r11.e0();
        return;
    L_0x01a4:
        r11 = move-exception;
        r12 = r10.K();
        r12.e0();
        throw r11;
        */
        throw new UnsupportedOperationException("Method not decompiled: c.e.a.b.f.b.k9.q(com.google.android.gms.measurement.internal.zzz, com.google.android.gms.measurement.internal.zzn):void");
    }

    /* JADX WARNING: Removed duplicated region for block: B:47:0x0134 A:{Catch:{ all -> 0x0175, all -> 0x017e }} */
    /* JADX WARNING: Removed duplicated region for block: B:46:0x0126 A:{Catch:{ all -> 0x0175, all -> 0x017e }} */
    public final void r(java.lang.String r8, int r9, java.lang.Throwable r10, byte[] r11, java.util.Map<java.lang.String, java.util.List<java.lang.String>> r12) {
        /*
        r7 = this;
        r7.U();
        r7.P();
        b.i.b.f.N(r8);
        r0 = 0;
        if (r11 != 0) goto L_0x000e;
    L_0x000c:
        r11 = new byte[r0];	 Catch:{ all -> 0x017e }
    L_0x000e:
        r1 = r7.j;	 Catch:{ all -> 0x017e }
        r1 = r1.d();	 Catch:{ all -> 0x017e }
        r1 = r1.n;	 Catch:{ all -> 0x017e }
        r2 = "onConfigFetched. Response size";
        r3 = r11.length;	 Catch:{ all -> 0x017e }
        r3 = java.lang.Integer.valueOf(r3);	 Catch:{ all -> 0x017e }
        r1.b(r2, r3);	 Catch:{ all -> 0x017e }
        r1 = r7.K();	 Catch:{ all -> 0x017e }
        r1.b0();	 Catch:{ all -> 0x017e }
        r1 = r7.K();	 Catch:{ all -> 0x0175 }
        r1 = r1.T(r8);	 Catch:{ all -> 0x0175 }
        r2 = 200; // 0xc8 float:2.8E-43 double:9.9E-322;
        r3 = 304; // 0x130 float:4.26E-43 double:1.5E-321;
        r4 = 1;
        if (r9 == r2) goto L_0x003c;
    L_0x0036:
        r2 = 204; // 0xcc float:2.86E-43 double:1.01E-321;
        if (r9 == r2) goto L_0x003c;
    L_0x003a:
        if (r9 != r3) goto L_0x0040;
    L_0x003c:
        if (r10 != 0) goto L_0x0040;
    L_0x003e:
        r2 = 1;
        goto L_0x0041;
    L_0x0040:
        r2 = 0;
    L_0x0041:
        if (r1 != 0) goto L_0x0056;
    L_0x0043:
        r9 = r7.j;	 Catch:{ all -> 0x0175 }
        r9 = r9.d();	 Catch:{ all -> 0x0175 }
        r9 = r9.i;	 Catch:{ all -> 0x0175 }
        r10 = "App does not exist in onConfigFetched. appId";
        r8 = c.e.a.b.f.b.q3.s(r8);	 Catch:{ all -> 0x0175 }
        r9.b(r10, r8);	 Catch:{ all -> 0x0175 }
        goto L_0x0161;
    L_0x0056:
        r5 = 404; // 0x194 float:5.66E-43 double:1.996E-321;
        r6 = 0;
        if (r2 != 0) goto L_0x00d3;
    L_0x005b:
        if (r9 != r5) goto L_0x005e;
    L_0x005d:
        goto L_0x00d3;
    L_0x005e:
        r11 = r7.j;	 Catch:{ all -> 0x0175 }
        r11 = r11.n;	 Catch:{ all -> 0x0175 }
        r11 = (c.e.a.b.b.j.c) r11;	 Catch:{ all -> 0x0175 }
        java.util.Objects.requireNonNull(r11);	 Catch:{ all -> 0x0175 }
        r11 = java.lang.System.currentTimeMillis();	 Catch:{ all -> 0x0175 }
        r1.I(r11);	 Catch:{ all -> 0x0175 }
        r11 = r7.K();	 Catch:{ all -> 0x0175 }
        r11.I(r1);	 Catch:{ all -> 0x0175 }
        r11 = r7.j;	 Catch:{ all -> 0x0175 }
        r11 = r11.d();	 Catch:{ all -> 0x0175 }
        r11 = r11.n;	 Catch:{ all -> 0x0175 }
        r12 = "Fetching config failed. code, error";
        r1 = java.lang.Integer.valueOf(r9);	 Catch:{ all -> 0x0175 }
        r11.c(r12, r1, r10);	 Catch:{ all -> 0x0175 }
        r10 = r7.H();	 Catch:{ all -> 0x0175 }
        r10.g();	 Catch:{ all -> 0x0175 }
        r10 = r10.i;	 Catch:{ all -> 0x0175 }
        r10.put(r8, r6);	 Catch:{ all -> 0x0175 }
        r8 = r7.j;	 Catch:{ all -> 0x0175 }
        r8 = r8.o();	 Catch:{ all -> 0x0175 }
        r8 = r8.f;	 Catch:{ all -> 0x0175 }
        r10 = r7.j;	 Catch:{ all -> 0x0175 }
        r10 = r10.n;	 Catch:{ all -> 0x0175 }
        r10 = (c.e.a.b.b.j.c) r10;	 Catch:{ all -> 0x0175 }
        java.util.Objects.requireNonNull(r10);	 Catch:{ all -> 0x0175 }
        r10 = java.lang.System.currentTimeMillis();	 Catch:{ all -> 0x0175 }
        r8.b(r10);	 Catch:{ all -> 0x0175 }
        r8 = 503; // 0x1f7 float:7.05E-43 double:2.485E-321;
        if (r9 == r8) goto L_0x00b4;
    L_0x00ae:
        r8 = 429; // 0x1ad float:6.01E-43 double:2.12E-321;
        if (r9 != r8) goto L_0x00b3;
    L_0x00b2:
        goto L_0x00b4;
    L_0x00b3:
        r4 = 0;
    L_0x00b4:
        if (r4 == 0) goto L_0x00ce;
    L_0x00b6:
        r8 = r7.j;	 Catch:{ all -> 0x0175 }
        r8 = r8.o();	 Catch:{ all -> 0x0175 }
        r8 = r8.g;	 Catch:{ all -> 0x0175 }
        r9 = r7.j;	 Catch:{ all -> 0x0175 }
        r9 = r9.n;	 Catch:{ all -> 0x0175 }
        r9 = (c.e.a.b.b.j.c) r9;	 Catch:{ all -> 0x0175 }
        java.util.Objects.requireNonNull(r9);	 Catch:{ all -> 0x0175 }
        r9 = java.lang.System.currentTimeMillis();	 Catch:{ all -> 0x0175 }
        r8.b(r9);	 Catch:{ all -> 0x0175 }
    L_0x00ce:
        r7.w();	 Catch:{ all -> 0x0175 }
        goto L_0x0161;
    L_0x00d3:
        if (r12 == 0) goto L_0x00de;
    L_0x00d5:
        r10 = "Last-Modified";
        r10 = r12.get(r10);	 Catch:{ all -> 0x0175 }
        r10 = (java.util.List) r10;	 Catch:{ all -> 0x0175 }
        goto L_0x00df;
    L_0x00de:
        r10 = r6;
    L_0x00df:
        if (r10 == 0) goto L_0x00ee;
    L_0x00e1:
        r12 = r10.size();	 Catch:{ all -> 0x0175 }
        if (r12 <= 0) goto L_0x00ee;
    L_0x00e7:
        r10 = r10.get(r0);	 Catch:{ all -> 0x0175 }
        r10 = (java.lang.String) r10;	 Catch:{ all -> 0x0175 }
        goto L_0x00ef;
    L_0x00ee:
        r10 = r6;
    L_0x00ef:
        if (r9 == r5) goto L_0x00fc;
    L_0x00f1:
        if (r9 != r3) goto L_0x00f4;
    L_0x00f3:
        goto L_0x00fc;
    L_0x00f4:
        r12 = r7.H();	 Catch:{ all -> 0x0175 }
        r12.w(r8, r11, r10);	 Catch:{ all -> 0x0175 }
        goto L_0x010d;
    L_0x00fc:
        r10 = r7.H();	 Catch:{ all -> 0x0175 }
        r10 = r10.s(r8);	 Catch:{ all -> 0x0175 }
        if (r10 != 0) goto L_0x010d;
    L_0x0106:
        r10 = r7.H();	 Catch:{ all -> 0x0175 }
        r10.w(r8, r6, r6);	 Catch:{ all -> 0x0175 }
    L_0x010d:
        r10 = r7.j;	 Catch:{ all -> 0x0175 }
        r10 = r10.n;	 Catch:{ all -> 0x0175 }
        r10 = (c.e.a.b.b.j.c) r10;	 Catch:{ all -> 0x0175 }
        java.util.Objects.requireNonNull(r10);	 Catch:{ all -> 0x0175 }
        r2 = java.lang.System.currentTimeMillis();	 Catch:{ all -> 0x0175 }
        r1.F(r2);	 Catch:{ all -> 0x0175 }
        r10 = r7.K();	 Catch:{ all -> 0x0175 }
        r10.I(r1);	 Catch:{ all -> 0x0175 }
        if (r9 != r5) goto L_0x0134;
    L_0x0126:
        r9 = r7.j;	 Catch:{ all -> 0x0175 }
        r9 = r9.d();	 Catch:{ all -> 0x0175 }
        r9 = r9.k;	 Catch:{ all -> 0x0175 }
        r10 = "Config not found. Using empty config. appId";
        r9.b(r10, r8);	 Catch:{ all -> 0x0175 }
        goto L_0x014a;
    L_0x0134:
        r8 = r7.j;	 Catch:{ all -> 0x0175 }
        r8 = r8.d();	 Catch:{ all -> 0x0175 }
        r8 = r8.n;	 Catch:{ all -> 0x0175 }
        r10 = "Successfully fetched config. Got network response. code, size";
        r9 = java.lang.Integer.valueOf(r9);	 Catch:{ all -> 0x0175 }
        r11 = r11.length;	 Catch:{ all -> 0x0175 }
        r11 = java.lang.Integer.valueOf(r11);	 Catch:{ all -> 0x0175 }
        r8.c(r10, r9, r11);	 Catch:{ all -> 0x0175 }
    L_0x014a:
        r8 = r7.J();	 Catch:{ all -> 0x0175 }
        r8 = r8.u();	 Catch:{ all -> 0x0175 }
        if (r8 == 0) goto L_0x015e;
    L_0x0154:
        r8 = r7.v();	 Catch:{ all -> 0x0175 }
        if (r8 == 0) goto L_0x015e;
    L_0x015a:
        r7.Q();	 Catch:{ all -> 0x0175 }
        goto L_0x0161;
    L_0x015e:
        r7.w();	 Catch:{ all -> 0x0175 }
    L_0x0161:
        r8 = r7.K();	 Catch:{ all -> 0x0175 }
        r8.s();	 Catch:{ all -> 0x0175 }
        r8 = r7.K();	 Catch:{ all -> 0x017e }
        r8.e0();	 Catch:{ all -> 0x017e }
        r7.q = r0;
        r7.x();
        return;
    L_0x0175:
        r8 = move-exception;
        r9 = r7.K();	 Catch:{ all -> 0x017e }
        r9.e0();	 Catch:{ all -> 0x017e }
        throw r8;	 Catch:{ all -> 0x017e }
    L_0x017e:
        r8 = move-exception;
        r7.q = r0;
        r7.x();
        throw r8;
        */
        throw new UnsupportedOperationException("Method not decompiled: c.e.a.b.f.b.k9.r(java.lang.String, int, java.lang.Throwable, byte[], java.util.Map):void");
    }

    public final void s(String str, d dVar) {
        if (v8.a() && this.j.g.o(p.J0)) {
            U();
            P();
            this.y.put(str, dVar);
            g K = K();
            if (v8.a() && K.a.g.o(p.J0)) {
                Objects.requireNonNull(str, "null reference");
                K.g();
                K.n();
                ContentValues contentValues = new ContentValues();
                contentValues.put(HiAnalyticsConstant.BI_KEY_APP_ID, str);
                contentValues.put("consent_state", dVar.d());
                try {
                    if (K.t().insertWithOnConflict("consent_settings", null, contentValues, 5) == -1) {
                        K.d().f.b("Failed to insert/update consent setting (got -1). appId", q3.s(str));
                    }
                } catch (SQLiteException e) {
                    K.d().f.c("Error storing consent setting. appId, error", q3.s(str), e);
                }
            }
        }
    }

    /* JADX WARNING: Unknown top exception splitter block from list: {B:21:0x0062=Splitter:B:21:0x0062, B:59:0x00de=Splitter:B:59:0x00de} */
    /* JADX WARNING: Removed duplicated region for block: B:259:0x04dd A:{Catch:{ IOException -> 0x0266, all -> 0x0ef1 }} */
    /* JADX WARNING: Removed duplicated region for block: B:258:0x04dc A:{Catch:{ IOException -> 0x0266, all -> 0x0ef1 }} */
    /* JADX WARNING: Removed duplicated region for block: B:251:0x04d1 A:{Catch:{ IOException -> 0x0266, all -> 0x0ef1 }} */
    /* JADX WARNING: Removed duplicated region for block: B:258:0x04dc A:{Catch:{ IOException -> 0x0266, all -> 0x0ef1 }} */
    /* JADX WARNING: Removed duplicated region for block: B:259:0x04dd A:{Catch:{ IOException -> 0x0266, all -> 0x0ef1 }} */
    /* JADX WARNING: Removed duplicated region for block: B:251:0x04d1 A:{Catch:{ IOException -> 0x0266, all -> 0x0ef1 }} */
    /* JADX WARNING: Removed duplicated region for block: B:259:0x04dd A:{Catch:{ IOException -> 0x0266, all -> 0x0ef1 }} */
    /* JADX WARNING: Removed duplicated region for block: B:258:0x04dc A:{Catch:{ IOException -> 0x0266, all -> 0x0ef1 }} */
    /* JADX WARNING: Removed duplicated region for block: B:675:0x055b A:{SYNTHETIC, EDGE_INSN: B:675:0x055b->B:275:0x055b ?: BREAK  , EDGE_INSN: B:675:0x055b->B:275:0x055b ?: BREAK  } */
    /* JADX WARNING: Removed duplicated region for block: B:266:0x04fa A:{SYNTHETIC, Splitter:B:266:0x04fa} */
    /* JADX WARNING: Removed duplicated region for block: B:280:0x058f A:{Catch:{ IOException -> 0x0266, all -> 0x0ef1 }} */
    /* JADX WARNING: Removed duplicated region for block: B:284:0x05ec A:{Catch:{ IOException -> 0x0266, all -> 0x0ef1 }} */
    /* JADX WARNING: Removed duplicated region for block: B:283:0x05e8 A:{Catch:{ IOException -> 0x0266, all -> 0x0ef1 }} */
    /* JADX WARNING: Removed duplicated region for block: B:293:0x064c A:{Catch:{ IOException -> 0x0266, all -> 0x0ef1 }} */
    /* JADX WARNING: Removed duplicated region for block: B:305:0x0699 A:{Catch:{ IOException -> 0x0266, all -> 0x0ef1 }} */
    /* JADX WARNING: Removed duplicated region for block: B:304:0x067c A:{Catch:{ IOException -> 0x0266, all -> 0x0ef1 }} */
    /* JADX WARNING: Removed duplicated region for block: B:407:0x096f A:{Catch:{ IOException -> 0x0266, all -> 0x0ef1 }} */
    /* JADX WARNING: Removed duplicated region for block: B:406:0x0955 A:{Catch:{ IOException -> 0x0266, all -> 0x0ef1 }} */
    /* JADX WARNING: Removed duplicated region for block: B:406:0x0955 A:{Catch:{ IOException -> 0x0266, all -> 0x0ef1 }} */
    /* JADX WARNING: Removed duplicated region for block: B:407:0x096f A:{Catch:{ IOException -> 0x0266, all -> 0x0ef1 }} */
    /* JADX WARNING: Removed duplicated region for block: B:407:0x096f A:{Catch:{ IOException -> 0x0266, all -> 0x0ef1 }} */
    /* JADX WARNING: Removed duplicated region for block: B:406:0x0955 A:{Catch:{ IOException -> 0x0266, all -> 0x0ef1 }} */
    /* JADX WARNING: Removed duplicated region for block: B:406:0x0955 A:{Catch:{ IOException -> 0x0266, all -> 0x0ef1 }} */
    /* JADX WARNING: Removed duplicated region for block: B:407:0x096f A:{Catch:{ IOException -> 0x0266, all -> 0x0ef1 }} */
    /* JADX WARNING: Removed duplicated region for block: B:399:0x0934 A:{Catch:{ IOException -> 0x0266, all -> 0x0ef1 }} */
    /* JADX WARNING: Removed duplicated region for block: B:346:0x078d A:{Catch:{ IOException -> 0x0266, all -> 0x0ef1 }} */
    /* JADX WARNING: Removed duplicated region for block: B:407:0x096f A:{Catch:{ IOException -> 0x0266, all -> 0x0ef1 }} */
    /* JADX WARNING: Removed duplicated region for block: B:406:0x0955 A:{Catch:{ IOException -> 0x0266, all -> 0x0ef1 }} */
    /* JADX WARNING: Removed duplicated region for block: B:346:0x078d A:{Catch:{ IOException -> 0x0266, all -> 0x0ef1 }} */
    /* JADX WARNING: Removed duplicated region for block: B:399:0x0934 A:{Catch:{ IOException -> 0x0266, all -> 0x0ef1 }} */
    /* JADX WARNING: Removed duplicated region for block: B:406:0x0955 A:{Catch:{ IOException -> 0x0266, all -> 0x0ef1 }} */
    /* JADX WARNING: Removed duplicated region for block: B:407:0x096f A:{Catch:{ IOException -> 0x0266, all -> 0x0ef1 }} */
    /* JADX WARNING: Removed duplicated region for block: B:534:0x0cf5 A:{Catch:{ IOException -> 0x0266, all -> 0x0ef1 }} */
    /* JADX WARNING: Removed duplicated region for block: B:533:0x0ce2 A:{Catch:{ IOException -> 0x0266, all -> 0x0ef1 }} */
    /* JADX WARNING: Removed duplicated region for block: B:537:0x0d1f A:{Catch:{ IOException -> 0x0266, all -> 0x0ef1 }} */
    /* JADX WARNING: Removed duplicated region for block: B:536:0x0cf8 A:{Catch:{ IOException -> 0x0266, all -> 0x0ef1 }} */
    /* JADX WARNING: Removed duplicated region for block: B:653:0x1083  */
    /* JADX WARNING: Removed duplicated region for block: B:189:0x02fb A:{Catch:{ IOException -> 0x0266, all -> 0x0ef1 }} */
    /* JADX WARNING: Removed duplicated region for block: B:183:0x02ef A:{Catch:{ IOException -> 0x0266, all -> 0x0ef1 }} */
    /* JADX WARNING: Removed duplicated region for block: B:189:0x02fb A:{Catch:{ IOException -> 0x0266, all -> 0x0ef1 }} */
    /* JADX WARNING: Removed duplicated region for block: B:653:0x1083  */
    /* JADX WARNING: Removed duplicated region for block: B:183:0x02ef A:{Catch:{ IOException -> 0x0266, all -> 0x0ef1 }} */
    /* JADX WARNING: Removed duplicated region for block: B:653:0x1083  */
    /* JADX WARNING: Removed duplicated region for block: B:189:0x02fb A:{Catch:{ IOException -> 0x0266, all -> 0x0ef1 }} */
    /* JADX WARNING: Removed duplicated region for block: B:183:0x02ef A:{Catch:{ IOException -> 0x0266, all -> 0x0ef1 }} */
    /* JADX WARNING: Removed duplicated region for block: B:189:0x02fb A:{Catch:{ IOException -> 0x0266, all -> 0x0ef1 }} */
    /* JADX WARNING: Removed duplicated region for block: B:653:0x1083  */
    /* JADX WARNING: Removed duplicated region for block: B:183:0x02ef A:{Catch:{ IOException -> 0x0266, all -> 0x0ef1 }} */
    /* JADX WARNING: Removed duplicated region for block: B:653:0x1083  */
    /* JADX WARNING: Removed duplicated region for block: B:189:0x02fb A:{Catch:{ IOException -> 0x0266, all -> 0x0ef1 }} */
    /* JADX WARNING: Removed duplicated region for block: B:183:0x02ef A:{Catch:{ IOException -> 0x0266, all -> 0x0ef1 }} */
    /* JADX WARNING: Removed duplicated region for block: B:189:0x02fb A:{Catch:{ IOException -> 0x0266, all -> 0x0ef1 }} */
    /* JADX WARNING: Removed duplicated region for block: B:653:0x1083  */
    /* JADX WARNING: Removed duplicated region for block: B:179:0x02e8 A:{SYNTHETIC, Splitter:B:179:0x02e8} */
    /* JADX WARNING: Removed duplicated region for block: B:183:0x02ef A:{Catch:{ IOException -> 0x0266, all -> 0x0ef1 }} */
    /* JADX WARNING: Removed duplicated region for block: B:653:0x1083  */
    /* JADX WARNING: Removed duplicated region for block: B:189:0x02fb A:{Catch:{ IOException -> 0x0266, all -> 0x0ef1 }} */
    /* JADX WARNING: Removed duplicated region for block: B:662:0x109a A:{SYNTHETIC, Splitter:B:662:0x109a} */
    /* JADX WARNING: Removed duplicated region for block: B:179:0x02e8 A:{SYNTHETIC, Splitter:B:179:0x02e8} */
    /* JADX WARNING: Removed duplicated region for block: B:183:0x02ef A:{Catch:{ IOException -> 0x0266, all -> 0x0ef1 }} */
    /* JADX WARNING: Removed duplicated region for block: B:189:0x02fb A:{Catch:{ IOException -> 0x0266, all -> 0x0ef1 }} */
    /* JADX WARNING: Removed duplicated region for block: B:653:0x1083  */
    /* JADX WARNING: Removed duplicated region for block: B:662:0x109a A:{SYNTHETIC, Splitter:B:662:0x109a} */
    /* JADX WARNING: Removed duplicated region for block: B:179:0x02e8 A:{SYNTHETIC, Splitter:B:179:0x02e8} */
    /* JADX WARNING: Removed duplicated region for block: B:183:0x02ef A:{Catch:{ IOException -> 0x0266, all -> 0x0ef1 }} */
    /* JADX WARNING: Removed duplicated region for block: B:653:0x1083  */
    /* JADX WARNING: Removed duplicated region for block: B:189:0x02fb A:{Catch:{ IOException -> 0x0266, all -> 0x0ef1 }} */
    /* JADX WARNING: Removed duplicated region for block: B:164:0x02aa A:{ExcHandler: all (r0_9 'th' java.lang.Throwable), PHI: r7 , Splitter:B:26:0x0084} */
    /* JADX WARNING: Removed duplicated region for block: B:170:0x02c2 A:{ExcHandler: all (r0_8 'th' java.lang.Throwable), Splitter:B:4:0x002c} */
    /* JADX WARNING: Removed duplicated region for block: B:179:0x02e8 A:{SYNTHETIC, Splitter:B:179:0x02e8} */
    /* JADX WARNING: Removed duplicated region for block: B:183:0x02ef A:{Catch:{ IOException -> 0x0266, all -> 0x0ef1 }} */
    /* JADX WARNING: Removed duplicated region for block: B:189:0x02fb A:{Catch:{ IOException -> 0x0266, all -> 0x0ef1 }} */
    /* JADX WARNING: Removed duplicated region for block: B:653:0x1083  */
    /* JADX WARNING: Removed duplicated region for block: B:164:0x02aa A:{ExcHandler: all (r0_9 'th' java.lang.Throwable), PHI: r7 , Splitter:B:26:0x0084} */
    /* JADX WARNING: Removed duplicated region for block: B:179:0x02e8 A:{SYNTHETIC, Splitter:B:179:0x02e8} */
    /* JADX WARNING: Removed duplicated region for block: B:183:0x02ef A:{Catch:{ IOException -> 0x0266, all -> 0x0ef1 }} */
    /* JADX WARNING: Removed duplicated region for block: B:653:0x1083  */
    /* JADX WARNING: Removed duplicated region for block: B:189:0x02fb A:{Catch:{ IOException -> 0x0266, all -> 0x0ef1 }} */
    /* JADX WARNING: Removed duplicated region for block: B:164:0x02aa A:{ExcHandler: all (r0_9 'th' java.lang.Throwable), PHI: r7 , Splitter:B:26:0x0084} */
    /* JADX WARNING: Removed duplicated region for block: B:179:0x02e8 A:{SYNTHETIC, Splitter:B:179:0x02e8} */
    /* JADX WARNING: Removed duplicated region for block: B:183:0x02ef A:{Catch:{ IOException -> 0x0266, all -> 0x0ef1 }} */
    /* JADX WARNING: Removed duplicated region for block: B:189:0x02fb A:{Catch:{ IOException -> 0x0266, all -> 0x0ef1 }} */
    /* JADX WARNING: Removed duplicated region for block: B:653:0x1083  */
    /* JADX WARNING: Removed duplicated region for block: B:164:0x02aa A:{ExcHandler: all (r0_9 'th' java.lang.Throwable), PHI: r7 , Splitter:B:26:0x0084} */
    /* JADX WARNING: Removed duplicated region for block: B:179:0x02e8 A:{SYNTHETIC, Splitter:B:179:0x02e8} */
    /* JADX WARNING: Removed duplicated region for block: B:183:0x02ef A:{Catch:{ IOException -> 0x0266, all -> 0x0ef1 }} */
    /* JADX WARNING: Removed duplicated region for block: B:653:0x1083  */
    /* JADX WARNING: Removed duplicated region for block: B:189:0x02fb A:{Catch:{ IOException -> 0x0266, all -> 0x0ef1 }} */
    /* JADX WARNING: Removed duplicated region for block: B:170:0x02c2 A:{ExcHandler: all (r0_8 'th' java.lang.Throwable), Splitter:B:4:0x002c} */
    /* JADX WARNING: Removed duplicated region for block: B:164:0x02aa A:{ExcHandler: all (r0_9 'th' java.lang.Throwable), PHI: r7 , Splitter:B:26:0x0084} */
    /* JADX WARNING: Removed duplicated region for block: B:179:0x02e8 A:{SYNTHETIC, Splitter:B:179:0x02e8} */
    /* JADX WARNING: Removed duplicated region for block: B:183:0x02ef A:{Catch:{ IOException -> 0x0266, all -> 0x0ef1 }} */
    /* JADX WARNING: Removed duplicated region for block: B:189:0x02fb A:{Catch:{ IOException -> 0x0266, all -> 0x0ef1 }} */
    /* JADX WARNING: Removed duplicated region for block: B:653:0x1083  */
    /* JADX WARNING: Removed duplicated region for block: B:164:0x02aa A:{ExcHandler: all (r0_9 'th' java.lang.Throwable), PHI: r7 , Splitter:B:26:0x0084} */
    /* JADX WARNING: Removed duplicated region for block: B:164:0x02aa A:{ExcHandler: all (r0_9 'th' java.lang.Throwable), PHI: r7 , Splitter:B:26:0x0084} */
    /* JADX WARNING: Removed duplicated region for block: B:662:0x109a A:{SYNTHETIC, Splitter:B:662:0x109a} */
    /* JADX WARNING: Removed duplicated region for block: B:164:0x02aa A:{ExcHandler: all (r0_9 'th' java.lang.Throwable), PHI: r7 , Splitter:B:26:0x0084} */
    /* JADX WARNING: Removed duplicated region for block: B:170:0x02c2 A:{ExcHandler: all (r0_8 'th' java.lang.Throwable), Splitter:B:4:0x002c} */
    /* JADX WARNING: Removed duplicated region for block: B:179:0x02e8 A:{SYNTHETIC, Splitter:B:179:0x02e8} */
    /* JADX WARNING: Removed duplicated region for block: B:183:0x02ef A:{Catch:{ IOException -> 0x0266, all -> 0x0ef1 }} */
    /* JADX WARNING: Removed duplicated region for block: B:653:0x1083  */
    /* JADX WARNING: Removed duplicated region for block: B:189:0x02fb A:{Catch:{ IOException -> 0x0266, all -> 0x0ef1 }} */
    /* JADX WARNING: Removed duplicated region for block: B:662:0x109a A:{SYNTHETIC, Splitter:B:662:0x109a} */
    /* JADX WARNING: Removed duplicated region for block: B:170:0x02c2 A:{ExcHandler: all (r0_8 'th' java.lang.Throwable), Splitter:B:4:0x002c} */
    /* JADX WARNING: Removed duplicated region for block: B:179:0x02e8 A:{SYNTHETIC, Splitter:B:179:0x02e8} */
    /* JADX WARNING: Removed duplicated region for block: B:183:0x02ef A:{Catch:{ IOException -> 0x0266, all -> 0x0ef1 }} */
    /* JADX WARNING: Removed duplicated region for block: B:189:0x02fb A:{Catch:{ IOException -> 0x0266, all -> 0x0ef1 }} */
    /* JADX WARNING: Removed duplicated region for block: B:653:0x1083  */
    /* JADX WARNING: Removed duplicated region for block: B:179:0x02e8 A:{SYNTHETIC, Splitter:B:179:0x02e8} */
    /* JADX WARNING: Removed duplicated region for block: B:183:0x02ef A:{Catch:{ IOException -> 0x0266, all -> 0x0ef1 }} */
    /* JADX WARNING: Removed duplicated region for block: B:653:0x1083  */
    /* JADX WARNING: Removed duplicated region for block: B:189:0x02fb A:{Catch:{ IOException -> 0x0266, all -> 0x0ef1 }} */
    /* JADX WARNING: Exception block dominator not found, dom blocks: [B:26:0x0084, B:61:0x00fe] */
    /* JADX WARNING: Failed to process nested try/catch */
    /* JADX WARNING: Failed to process nested try/catch */
    /* JADX WARNING: Failed to process nested try/catch */
    /* JADX WARNING: Failed to process nested try/catch */
    /* JADX WARNING: Failed to process nested try/catch */
    /* JADX WARNING: Failed to process nested try/catch */
    /* JADX WARNING: Failed to process nested try/catch */
    /* JADX WARNING: Failed to process nested try/catch */
    /* JADX WARNING: Failed to process nested try/catch */
    /* JADX WARNING: Failed to process nested try/catch */
    /* JADX WARNING: Failed to process nested try/catch */
    /* JADX WARNING: Missing block: B:39:0x00a8, code skipped:
            r0 = move-exception;
     */
    /* JADX WARNING: Missing block: B:40:0x00a9, code skipped:
            r9 = r0;
     */
    /* JADX WARNING: Missing block: B:41:0x00ab, code skipped:
            r0 = e;
     */
    /* JADX WARNING: Missing block: B:42:0x00ac, code skipped:
            r26 = r7;
     */
    /* JADX WARNING: Missing block: B:49:0x00c5, code skipped:
            r0 = e;
     */
    /* JADX WARNING: Missing block: B:98:0x018e, code skipped:
            r0 = e;
     */
    /* JADX WARNING: Missing block: B:99:0x0190, code skipped:
            r0 = e;
     */
    /* JADX WARNING: Missing block: B:100:0x0191, code skipped:
            r28 = r2;
     */
    /* JADX WARNING: Missing block: B:101:0x0193, code skipped:
            r29 = r3;
     */
    /* JADX WARNING: Missing block: B:118:0x0201, code skipped:
            r0 = e;
     */
    /* JADX WARNING: Missing block: B:119:0x0202, code skipped:
            r2 = r0;
     */
    /* JADX WARNING: Missing block: B:134:?, code skipped:
            r7.close();
     */
    /* JADX WARNING: Missing block: B:142:?, code skipped:
            r7.close();
     */
    /* JADX WARNING: Missing block: B:144:0x025f, code skipped:
            r0 = e;
     */
    /* JADX WARNING: Missing block: B:145:0x0261, code skipped:
            r0 = e;
     */
    /* JADX WARNING: Missing block: B:146:0x0262, code skipped:
            r9 = r4;
     */
    /* JADX WARNING: Missing block: B:154:0x0283, code skipped:
            r0 = e;
     */
    /* JADX WARNING: Missing block: B:155:0x0284, code skipped:
            r28 = r2;
            r29 = r3;
     */
    /* JADX WARNING: Missing block: B:164:0x02aa, code skipped:
            r0 = move-exception;
     */
    /* JADX WARNING: Missing block: B:165:0x02ab, code skipped:
            r2 = r0;
            r8 = r1;
     */
    /* JADX WARNING: Missing block: B:166:0x02af, code skipped:
            r0 = move-exception;
     */
    /* JADX WARNING: Missing block: B:167:0x02b0, code skipped:
            r28 = r2;
            r29 = r3;
            r9 = r4;
            r27 = r5;
            r2 = r0;
     */
    /* JADX WARNING: Missing block: B:168:0x02b9, code skipped:
            r0 = e;
     */
    /* JADX WARNING: Missing block: B:169:0x02ba, code skipped:
            r28 = r2;
            r29 = r3;
            r9 = r4;
            r27 = r5;
     */
    /* JADX WARNING: Missing block: B:170:0x02c2, code skipped:
            r0 = move-exception;
     */
    /* JADX WARNING: Missing block: B:171:0x02c3, code skipped:
            r2 = r0;
            r8 = r1;
            r9 = null;
     */
    /* JADX WARNING: Missing block: B:172:0x02c8, code skipped:
            r0 = e;
     */
    /* JADX WARNING: Missing block: B:173:0x02c9, code skipped:
            r28 = r2;
            r29 = r3;
            r9 = r4;
            r27 = r5;
            r26 = r7;
     */
    /* JADX WARNING: Missing block: B:174:0x02d2, code skipped:
            r2 = r0;
            r7 = null;
     */
    /* JADX WARNING: Missing block: B:175:0x02d4, code skipped:
            r14 = null;
     */
    public final boolean t(long r44) {
        /*
        r43 = this;
        r1 = r43;
        r2 = "_si";
        r3 = "_sc";
        r4 = "_sn";
        r5 = "_npa";
        r6 = "_ai";
        r7 = "";
        r8 = r43.K();
        r8.b0();
        r8 = new c.e.a.b.f.b.k9$a;	 Catch:{ all -> 0x0ef1 }
        r9 = 0;
        r8.m1445init(r1, r9);	 Catch:{ all -> 0x0ef1 }
        r10 = r43.K();	 Catch:{ all -> 0x0ef1 }
        r11 = r1.x;	 Catch:{ all -> 0x0ef1 }
        b.i.b.f.R(r8);	 Catch:{ all -> 0x0ef1 }
        r10.g();	 Catch:{ all -> 0x0ef1 }
        r10.n();	 Catch:{ all -> 0x0ef1 }
        r14 = -1;
        r13 = r10.t();	 Catch:{ SQLiteException -> 0x02c8, all -> 0x02c2 }
        r17 = android.text.TextUtils.isEmpty(r9);	 Catch:{ SQLiteException -> 0x02c8, all -> 0x02c2 }
        if (r17 == 0) goto L_0x00b0;
    L_0x0036:
        r17 = (r11 > r14 ? 1 : (r11 == r14 ? 0 : -1));
        if (r17 == 0) goto L_0x0052;
    L_0x003a:
        r9 = 2;
        r14 = new java.lang.String[r9];	 Catch:{ SQLiteException -> 0x004c, all -> 0x02c2 }
        r9 = java.lang.String.valueOf(r11);	 Catch:{ SQLiteException -> 0x004c, all -> 0x02c2 }
        r15 = 0;
        r14[r15] = r9;	 Catch:{ SQLiteException -> 0x004c, all -> 0x02c2 }
        r9 = java.lang.String.valueOf(r44);	 Catch:{ SQLiteException -> 0x004c, all -> 0x02c2 }
        r15 = 1;
        r14[r15] = r9;	 Catch:{ SQLiteException -> 0x004c, all -> 0x02c2 }
        goto L_0x005c;
    L_0x004c:
        r0 = move-exception;
        r9 = r0;
        r26 = r7;
        goto L_0x00d1;
    L_0x0052:
        r9 = 1;
        r14 = new java.lang.String[r9];	 Catch:{ SQLiteException -> 0x00ab, all -> 0x02c2 }
        r9 = java.lang.String.valueOf(r44);	 Catch:{ SQLiteException -> 0x00ab, all -> 0x02c2 }
        r15 = 0;
        r14[r15] = r9;	 Catch:{ SQLiteException -> 0x00ab, all -> 0x02c2 }
    L_0x005c:
        if (r17 == 0) goto L_0x0061;
    L_0x005e:
        r9 = "rowid <= ? and ";
        goto L_0x0062;
    L_0x0061:
        r9 = r7;
    L_0x0062:
        r15 = r9.length();	 Catch:{ SQLiteException -> 0x00ab, all -> 0x02c2 }
        r15 = r15 + 148;
        r26 = r7;
        r7 = new java.lang.StringBuilder;	 Catch:{ SQLiteException -> 0x00c5, all -> 0x02c2 }
        r7.<init>(r15);	 Catch:{ SQLiteException -> 0x00c5, all -> 0x02c2 }
        r15 = "select app_id, metadata_fingerprint from raw_events where ";
        r7.append(r15);	 Catch:{ SQLiteException -> 0x00c5, all -> 0x02c2 }
        r7.append(r9);	 Catch:{ SQLiteException -> 0x00c5, all -> 0x02c2 }
        r9 = "app_id in (select app_id from apps where config_fetched_time >= ?) order by rowid limit 1;";
        r7.append(r9);	 Catch:{ SQLiteException -> 0x00c5, all -> 0x02c2 }
        r7 = r7.toString();	 Catch:{ SQLiteException -> 0x00c5, all -> 0x02c2 }
        r7 = r13.rawQuery(r7, r14);	 Catch:{ SQLiteException -> 0x00c5, all -> 0x02c2 }
        r9 = r7.moveToFirst();	 Catch:{ SQLiteException -> 0x00a8, all -> 0x02aa }
        if (r9 != 0) goto L_0x008f;
    L_0x008a:
        r7.close();	 Catch:{ all -> 0x0ef1 }
        goto L_0x0150;
    L_0x008f:
        r9 = 0;
        r14 = r7.getString(r9);	 Catch:{ SQLiteException -> 0x00a8, all -> 0x02aa }
        r9 = 1;
        r15 = r7.getString(r9);	 Catch:{ SQLiteException -> 0x009e, all -> 0x02aa }
        r7.close();	 Catch:{ SQLiteException -> 0x009e, all -> 0x02aa }
        goto L_0x0111;
    L_0x009e:
        r0 = move-exception;
        r28 = r2;
        r29 = r3;
        r9 = r4;
        r27 = r5;
        goto L_0x0263;
    L_0x00a8:
        r0 = move-exception;
        r9 = r0;
        goto L_0x00d2;
    L_0x00ab:
        r0 = move-exception;
        r26 = r7;
    L_0x00ae:
        r9 = r0;
        goto L_0x00d1;
    L_0x00b0:
        r26 = r7;
        r7 = (r11 > r14 ? 1 : (r11 == r14 ? 0 : -1));
        if (r7 == 0) goto L_0x00c7;
    L_0x00b6:
        r9 = 2;
        r14 = new java.lang.String[r9];	 Catch:{ SQLiteException -> 0x00c5, all -> 0x02c2 }
        r9 = 0;
        r15 = 0;
        r14[r15] = r9;	 Catch:{ SQLiteException -> 0x00c5, all -> 0x02c2 }
        r9 = java.lang.String.valueOf(r11);	 Catch:{ SQLiteException -> 0x00c5, all -> 0x02c2 }
        r15 = 1;
        r14[r15] = r9;	 Catch:{ SQLiteException -> 0x00c5, all -> 0x02c2 }
        goto L_0x00cc;
    L_0x00c5:
        r0 = move-exception;
        goto L_0x00ae;
    L_0x00c7:
        r9 = 0;
        r14 = new java.lang.String[]{r9};	 Catch:{ SQLiteException -> 0x02b9, all -> 0x02c2 }
    L_0x00cc:
        if (r7 == 0) goto L_0x00dc;
    L_0x00ce:
        r7 = " and rowid <= ?";
        goto L_0x00de;
    L_0x00d1:
        r7 = 0;
    L_0x00d2:
        r28 = r2;
        r29 = r3;
        r27 = r5;
        r2 = r9;
        r14 = 0;
        goto L_0x0203;
    L_0x00dc:
        r7 = r26;
    L_0x00de:
        r9 = r7.length();	 Catch:{ SQLiteException -> 0x02b9, all -> 0x02c2 }
        r9 = r9 + 84;
        r15 = new java.lang.StringBuilder;	 Catch:{ SQLiteException -> 0x02b9, all -> 0x02c2 }
        r15.<init>(r9);	 Catch:{ SQLiteException -> 0x02b9, all -> 0x02c2 }
        r9 = "select metadata_fingerprint from raw_events where app_id = ?";
        r15.append(r9);	 Catch:{ SQLiteException -> 0x02b9, all -> 0x02c2 }
        r15.append(r7);	 Catch:{ SQLiteException -> 0x02b9, all -> 0x02c2 }
        r7 = " order by rowid limit 1;";
        r15.append(r7);	 Catch:{ SQLiteException -> 0x02b9, all -> 0x02c2 }
        r7 = r15.toString();	 Catch:{ SQLiteException -> 0x02b9, all -> 0x02c2 }
        r7 = r13.rawQuery(r7, r14);	 Catch:{ SQLiteException -> 0x02b9, all -> 0x02c2 }
        r9 = r7.moveToFirst();	 Catch:{ SQLiteException -> 0x02af, all -> 0x02aa }
        if (r9 != 0) goto L_0x0108;
    L_0x0104:
        r7.close();	 Catch:{ all -> 0x0ef1 }
        goto L_0x0150;
    L_0x0108:
        r9 = 0;
        r15 = r7.getString(r9);	 Catch:{ SQLiteException -> 0x02af, all -> 0x02aa }
        r7.close();	 Catch:{ SQLiteException -> 0x02af, all -> 0x02aa }
        r14 = 0;
    L_0x0111:
        r18 = "raw_events_metadata";
        r9 = "metadata";
        r19 = new java.lang.String[]{r9};	 Catch:{ SQLiteException -> 0x029f, all -> 0x0296 }
        r20 = "app_id = ? and metadata_fingerprint = ?";
        r44 = r7;
        r9 = 2;
        r7 = new java.lang.String[r9];	 Catch:{ SQLiteException -> 0x028b, all -> 0x0289 }
        r9 = 0;
        r7[r9] = r14;	 Catch:{ SQLiteException -> 0x028b, all -> 0x0289 }
        r9 = 1;
        r7[r9] = r15;	 Catch:{ SQLiteException -> 0x028b, all -> 0x0289 }
        r22 = 0;
        r23 = 0;
        r24 = "rowid";
        r25 = "2";
        r17 = r13;
        r21 = r7;
        r7 = r17.query(r18, r19, r20, r21, r22, r23, r24, r25);	 Catch:{ SQLiteException -> 0x028b, all -> 0x0289 }
        r9 = r7.moveToFirst();	 Catch:{ SQLiteException -> 0x009e, all -> 0x02aa }
        if (r9 != 0) goto L_0x0159;
    L_0x013c:
        r9 = r10.d();	 Catch:{ SQLiteException -> 0x009e, all -> 0x02aa }
        r9 = r9.z();	 Catch:{ SQLiteException -> 0x009e, all -> 0x02aa }
        r11 = "Raw event metadata record is missing. appId";
        r12 = c.e.a.b.f.b.q3.s(r14);	 Catch:{ SQLiteException -> 0x009e, all -> 0x02aa }
        r9.b(r11, r12);	 Catch:{ SQLiteException -> 0x009e, all -> 0x02aa }
        r7.close();	 Catch:{ all -> 0x0ef1 }
    L_0x0150:
        r28 = r2;
        r29 = r3;
        r9 = r4;
        r27 = r5;
        goto L_0x02eb;
    L_0x0159:
        r27 = r5;
        r9 = 0;
        r5 = r7.getBlob(r9);	 Catch:{ SQLiteException -> 0x0283, all -> 0x02aa }
        r9 = c.e.a.b.e.c.e1.u0();	 Catch:{ IOException -> 0x0266 }
        r5 = c.e.a.b.f.b.q9.x(r9, r5);	 Catch:{ IOException -> 0x0266 }
        r5 = (c.e.a.b.e.c.e1.a) r5;	 Catch:{ IOException -> 0x0266 }
        r5 = r5.l();	 Catch:{ IOException -> 0x0266 }
        r5 = (c.e.a.b.e.c.u4) r5;	 Catch:{ IOException -> 0x0266 }
        r5 = (c.e.a.b.e.c.e1) r5;	 Catch:{ IOException -> 0x0266 }
        r9 = r7.moveToNext();	 Catch:{ SQLiteException -> 0x0283, all -> 0x02aa }
        if (r9 == 0) goto L_0x0196;
    L_0x0178:
        r9 = r10.d();	 Catch:{ SQLiteException -> 0x0190, all -> 0x02aa }
        r9 = r9.A();	 Catch:{ SQLiteException -> 0x0190, all -> 0x02aa }
        r28 = r2;
        r2 = "Get multiple raw event metadata records, expected one. appId";
        r29 = r3;
        r3 = c.e.a.b.f.b.q3.s(r14);	 Catch:{ SQLiteException -> 0x0201, all -> 0x02aa }
        r9.b(r2, r3);	 Catch:{ SQLiteException -> 0x0201, all -> 0x02aa }
        goto L_0x019a;
    L_0x018e:
        r0 = move-exception;
        goto L_0x0193;
    L_0x0190:
        r0 = move-exception;
        r28 = r2;
    L_0x0193:
        r29 = r3;
        goto L_0x0202;
    L_0x0196:
        r28 = r2;
        r29 = r3;
    L_0x019a:
        r7.close();	 Catch:{ SQLiteException -> 0x0261, all -> 0x02aa }
        r8.a(r5);	 Catch:{ SQLiteException -> 0x0261, all -> 0x02aa }
        r2 = -1;
        r5 = (r11 > r2 ? 1 : (r11 == r2 ? 0 : -1));
        if (r5 == 0) goto L_0x01b9;
    L_0x01a6:
        r2 = "app_id = ? and metadata_fingerprint = ? and rowid <= ?";
        r3 = 3;
        r5 = new java.lang.String[r3];	 Catch:{ SQLiteException -> 0x0201, all -> 0x02aa }
        r3 = 0;
        r5[r3] = r14;	 Catch:{ SQLiteException -> 0x0201, all -> 0x02aa }
        r3 = 1;
        r5[r3] = r15;	 Catch:{ SQLiteException -> 0x0201, all -> 0x02aa }
        r3 = java.lang.String.valueOf(r11);	 Catch:{ SQLiteException -> 0x0201, all -> 0x02aa }
        r9 = 2;
        r5[r9] = r3;	 Catch:{ SQLiteException -> 0x0201, all -> 0x02aa }
        goto L_0x01c4;
    L_0x01b9:
        r2 = "app_id = ? and metadata_fingerprint = ?";
        r3 = 2;
        r5 = new java.lang.String[r3];	 Catch:{ SQLiteException -> 0x0261, all -> 0x02aa }
        r3 = 0;
        r5[r3] = r14;	 Catch:{ SQLiteException -> 0x0261, all -> 0x02aa }
        r3 = 1;
        r5[r3] = r15;	 Catch:{ SQLiteException -> 0x0261, all -> 0x02aa }
    L_0x01c4:
        r20 = r2;
        r21 = r5;
        r18 = "raw_events";
        r2 = "rowid";
        r3 = "name";
        r5 = "timestamp";
        r9 = "data";
        r19 = new java.lang.String[]{r2, r3, r5, r9};	 Catch:{ SQLiteException -> 0x0261, all -> 0x02aa }
        r22 = 0;
        r23 = 0;
        r24 = "rowid";
        r25 = 0;
        r17 = r13;
        r7 = r17.query(r18, r19, r20, r21, r22, r23, r24, r25);	 Catch:{ SQLiteException -> 0x0261, all -> 0x02aa }
        r2 = r7.moveToFirst();	 Catch:{ SQLiteException -> 0x0261, all -> 0x02aa }
        if (r2 != 0) goto L_0x0206;
    L_0x01ea:
        r2 = r10.d();	 Catch:{ SQLiteException -> 0x0201, all -> 0x02aa }
        r2 = r2.A();	 Catch:{ SQLiteException -> 0x0201, all -> 0x02aa }
        r3 = "Raw event data disappeared while in transaction. appId";
        r5 = c.e.a.b.f.b.q3.s(r14);	 Catch:{ SQLiteException -> 0x0201, all -> 0x02aa }
        r2.b(r3, r5);	 Catch:{ SQLiteException -> 0x0201, all -> 0x02aa }
        r7.close();	 Catch:{ all -> 0x0ef1 }
        r9 = r4;
        goto L_0x02eb;
    L_0x0201:
        r0 = move-exception;
    L_0x0202:
        r2 = r0;
    L_0x0203:
        r9 = r4;
        goto L_0x02d5;
    L_0x0206:
        r2 = 0;
        r11 = r7.getLong(r2);	 Catch:{ SQLiteException -> 0x0261, all -> 0x02aa }
        r2 = 3;
        r3 = r7.getBlob(r2);	 Catch:{ SQLiteException -> 0x0261, all -> 0x02aa }
        r2 = c.e.a.b.e.c.a1.M();	 Catch:{ IOException -> 0x023e }
        r2 = c.e.a.b.f.b.q9.x(r2, r3);	 Catch:{ IOException -> 0x023e }
        r2 = (c.e.a.b.e.c.a1.a) r2;	 Catch:{ IOException -> 0x023e }
        r3 = 1;
        r5 = r7.getString(r3);	 Catch:{ SQLiteException -> 0x0261, all -> 0x02aa }
        r2.p(r5);	 Catch:{ SQLiteException -> 0x0261, all -> 0x02aa }
        r9 = r4;
        r3 = 2;
        r4 = r7.getLong(r3);	 Catch:{ SQLiteException -> 0x025f, all -> 0x02aa }
        r2.n(r4);	 Catch:{ SQLiteException -> 0x025f, all -> 0x02aa }
        r2 = r2.l();	 Catch:{ SQLiteException -> 0x025f, all -> 0x02aa }
        r2 = (c.e.a.b.e.c.u4) r2;	 Catch:{ SQLiteException -> 0x025f, all -> 0x02aa }
        r2 = (c.e.a.b.e.c.a1) r2;	 Catch:{ SQLiteException -> 0x025f, all -> 0x02aa }
        r2 = r8.b(r11, r2);	 Catch:{ SQLiteException -> 0x025f, all -> 0x02aa }
        if (r2 != 0) goto L_0x0252;
    L_0x0239:
        r7.close();	 Catch:{ all -> 0x0ef1 }
        goto L_0x02eb;
    L_0x023e:
        r0 = move-exception;
        r9 = r4;
        r2 = r0;
        r3 = r10.d();	 Catch:{ SQLiteException -> 0x025f, all -> 0x02aa }
        r3 = r3.z();	 Catch:{ SQLiteException -> 0x025f, all -> 0x02aa }
        r4 = "Data loss. Failed to merge raw event. appId";
        r5 = c.e.a.b.f.b.q3.s(r14);	 Catch:{ SQLiteException -> 0x025f, all -> 0x02aa }
        r3.c(r4, r5, r2);	 Catch:{ SQLiteException -> 0x025f, all -> 0x02aa }
    L_0x0252:
        r2 = r7.moveToNext();	 Catch:{ SQLiteException -> 0x025f, all -> 0x02aa }
        if (r2 != 0) goto L_0x025d;
    L_0x0258:
        r7.close();	 Catch:{ all -> 0x0ef1 }
        goto L_0x02eb;
    L_0x025d:
        r4 = r9;
        goto L_0x0206;
    L_0x025f:
        r0 = move-exception;
        goto L_0x0263;
    L_0x0261:
        r0 = move-exception;
    L_0x0262:
        r9 = r4;
    L_0x0263:
        r2 = r0;
        goto L_0x02d5;
    L_0x0266:
        r0 = move-exception;
        r28 = r2;
        r29 = r3;
        r9 = r4;
        r2 = r0;
        r3 = r10.d();	 Catch:{ SQLiteException -> 0x025f, all -> 0x02aa }
        r3 = r3.z();	 Catch:{ SQLiteException -> 0x025f, all -> 0x02aa }
        r4 = "Data loss. Failed to merge raw event metadata. appId";
        r5 = c.e.a.b.f.b.q3.s(r14);	 Catch:{ SQLiteException -> 0x025f, all -> 0x02aa }
        r3.c(r4, r5, r2);	 Catch:{ SQLiteException -> 0x025f, all -> 0x02aa }
        r7.close();	 Catch:{ all -> 0x0ef1 }
        goto L_0x02eb;
    L_0x0283:
        r0 = move-exception;
        r28 = r2;
        r29 = r3;
        goto L_0x0262;
    L_0x0289:
        r0 = move-exception;
        goto L_0x0299;
    L_0x028b:
        r0 = move-exception;
        r28 = r2;
        r29 = r3;
        r9 = r4;
        r27 = r5;
        r7 = r44;
        goto L_0x0263;
    L_0x0296:
        r0 = move-exception;
        r44 = r7;
    L_0x0299:
        r9 = r44;
        r2 = r0;
        r8 = r1;
        goto L_0x1098;
    L_0x029f:
        r0 = move-exception;
        r28 = r2;
        r29 = r3;
        r9 = r4;
        r27 = r5;
        r44 = r7;
        goto L_0x0263;
    L_0x02aa:
        r0 = move-exception;
        r2 = r0;
        r8 = r1;
        goto L_0x1097;
    L_0x02af:
        r0 = move-exception;
        r28 = r2;
        r29 = r3;
        r9 = r4;
        r27 = r5;
        r2 = r0;
        goto L_0x02d4;
    L_0x02b9:
        r0 = move-exception;
        r28 = r2;
        r29 = r3;
        r9 = r4;
        r27 = r5;
        goto L_0x02d2;
    L_0x02c2:
        r0 = move-exception;
        r2 = r0;
        r8 = r1;
        r9 = 0;
        goto L_0x1098;
    L_0x02c8:
        r0 = move-exception;
        r28 = r2;
        r29 = r3;
        r9 = r4;
        r27 = r5;
        r26 = r7;
    L_0x02d2:
        r2 = r0;
        r7 = 0;
    L_0x02d4:
        r14 = 0;
    L_0x02d5:
        r3 = r10.d();	 Catch:{ all -> 0x1094 }
        r3 = r3.z();	 Catch:{ all -> 0x1094 }
        r4 = "Data loss. Error selecting raw event. appId";
        r5 = c.e.a.b.f.b.q3.s(r14);	 Catch:{ all -> 0x1094 }
        r3.c(r4, r5, r2);	 Catch:{ all -> 0x1094 }
        if (r7 == 0) goto L_0x02eb;
    L_0x02e8:
        r7.close();	 Catch:{ all -> 0x0ef1 }
    L_0x02eb:
        r2 = r8.c;	 Catch:{ all -> 0x0ef1 }
        if (r2 == 0) goto L_0x02f8;
    L_0x02ef:
        r2 = r2.isEmpty();	 Catch:{ all -> 0x0ef1 }
        if (r2 == 0) goto L_0x02f6;
    L_0x02f5:
        goto L_0x02f8;
    L_0x02f6:
        r2 = 0;
        goto L_0x02f9;
    L_0x02f8:
        r2 = 1;
    L_0x02f9:
        if (r2 != 0) goto L_0x1083;
    L_0x02fb:
        r2 = r8.a;	 Catch:{ all -> 0x0ef1 }
        r2 = r2.t();	 Catch:{ all -> 0x0ef1 }
        r2 = (c.e.a.b.e.c.e1.a) r2;	 Catch:{ all -> 0x0ef1 }
        r2.B();	 Catch:{ all -> 0x0ef1 }
        r3 = r1.j;	 Catch:{ all -> 0x0ef1 }
        r3 = r3.c();	 Catch:{ all -> 0x0ef1 }
        r4 = r8.a;	 Catch:{ all -> 0x0ef1 }
        r4 = r4.G1();	 Catch:{ all -> 0x0ef1 }
        r5 = c.e.a.b.f.b.p.U;	 Catch:{ all -> 0x0ef1 }
        r3 = r3.v(r4, r5);	 Catch:{ all -> 0x0ef1 }
        r4 = -1;
        r10 = 0;
        r11 = 0;
        r12 = 0;
        r13 = 0;
        r14 = 0;
        r15 = -1;
        r17 = 0;
    L_0x0321:
        r5 = r8.c;	 Catch:{ all -> 0x0ef1 }
        r5 = r5.size();	 Catch:{ all -> 0x0ef1 }
        r7 = "_fr";
        r20 = r10;
        r10 = "_et";
        r21 = r11;
        r11 = "_e";
        r22 = r9;
        r23 = r10;
        if (r12 >= r5) goto L_0x09ca;
    L_0x0337:
        r5 = r8.c;	 Catch:{ all -> 0x0ef1 }
        r5 = r5.get(r12);	 Catch:{ all -> 0x0ef1 }
        r5 = (c.e.a.b.e.c.a1) r5;	 Catch:{ all -> 0x0ef1 }
        r5 = r5.t();	 Catch:{ all -> 0x0ef1 }
        r5 = (c.e.a.b.e.c.a1.a) r5;	 Catch:{ all -> 0x0ef1 }
        r9 = r43.H();	 Catch:{ all -> 0x0ef1 }
        r10 = r8.a;	 Catch:{ all -> 0x0ef1 }
        r10 = r10.G1();	 Catch:{ all -> 0x0ef1 }
        r30 = r12;
        r12 = r5.v();	 Catch:{ all -> 0x0ef1 }
        r9 = r9.x(r10, r12);	 Catch:{ all -> 0x0ef1 }
        r10 = "_err";
        if (r9 == 0) goto L_0x03e8;
    L_0x035d:
        r7 = r1.j;	 Catch:{ all -> 0x0ef1 }
        r7 = r7.d();	 Catch:{ all -> 0x0ef1 }
        r7 = r7.A();	 Catch:{ all -> 0x0ef1 }
        r9 = "Dropping blacklisted raw event. appId";
        r11 = r8.a;	 Catch:{ all -> 0x0ef1 }
        r11 = r11.G1();	 Catch:{ all -> 0x0ef1 }
        r11 = c.e.a.b.f.b.q3.s(r11);	 Catch:{ all -> 0x0ef1 }
        r12 = r1.j;	 Catch:{ all -> 0x0ef1 }
        r12 = r12.u();	 Catch:{ all -> 0x0ef1 }
        r31 = r3;
        r3 = r5.v();	 Catch:{ all -> 0x0ef1 }
        r3 = r12.u(r3);	 Catch:{ all -> 0x0ef1 }
        r7.c(r9, r11, r3);	 Catch:{ all -> 0x0ef1 }
        r3 = r43.H();	 Catch:{ all -> 0x0ef1 }
        r7 = r8.a;	 Catch:{ all -> 0x0ef1 }
        r7 = r7.G1();	 Catch:{ all -> 0x0ef1 }
        r3 = r3.C(r7);	 Catch:{ all -> 0x0ef1 }
        if (r3 != 0) goto L_0x03a9;
    L_0x0396:
        r3 = r43.H();	 Catch:{ all -> 0x0ef1 }
        r7 = r8.a;	 Catch:{ all -> 0x0ef1 }
        r7 = r7.G1();	 Catch:{ all -> 0x0ef1 }
        r3 = r3.D(r7);	 Catch:{ all -> 0x0ef1 }
        if (r3 == 0) goto L_0x03a7;
    L_0x03a6:
        goto L_0x03a9;
    L_0x03a7:
        r3 = 0;
        goto L_0x03aa;
    L_0x03a9:
        r3 = 1;
    L_0x03aa:
        if (r3 != 0) goto L_0x03d3;
    L_0x03ac:
        r3 = r5.v();	 Catch:{ all -> 0x0ef1 }
        r3 = r10.equals(r3);	 Catch:{ all -> 0x0ef1 }
        if (r3 != 0) goto L_0x03d3;
    L_0x03b6:
        r3 = r1.j;	 Catch:{ all -> 0x0ef1 }
        r32 = r3.t();	 Catch:{ all -> 0x0ef1 }
        r3 = r1.z;	 Catch:{ all -> 0x0ef1 }
        r7 = r8.a;	 Catch:{ all -> 0x0ef1 }
        r34 = r7.G1();	 Catch:{ all -> 0x0ef1 }
        r35 = 11;
        r36 = "_ev";
        r37 = r5.v();	 Catch:{ all -> 0x0ef1 }
        r38 = 0;
        r33 = r3;
        r32.S(r33, r34, r35, r36, r37, r38);	 Catch:{ all -> 0x0ef1 }
    L_0x03d3:
        r16 = r4;
        r32 = r6;
        r36 = r14;
        r10 = r20;
        r11 = r21;
        r14 = r22;
        r4 = r28;
        r3 = r29;
        r9 = r30;
        r6 = r2;
        goto L_0x09b8;
    L_0x03e8:
        r31 = r3;
        r3 = c.e.a.b.e.c.z7.a();	 Catch:{ all -> 0x0ef1 }
        if (r3 == 0) goto L_0x0478;
    L_0x03f0:
        r3 = r1.j;	 Catch:{ all -> 0x0ef1 }
        r3 = r3.c();	 Catch:{ all -> 0x0ef1 }
        r9 = r8.a;	 Catch:{ all -> 0x0ef1 }
        r9 = r9.G1();	 Catch:{ all -> 0x0ef1 }
        r12 = c.e.a.b.f.b.p.M0;	 Catch:{ all -> 0x0ef1 }
        r3 = r3.v(r9, r12);	 Catch:{ all -> 0x0ef1 }
        if (r3 == 0) goto L_0x0478;
    L_0x0404:
        r3 = r5.v();	 Catch:{ all -> 0x0ef1 }
        r9 = c.e.a.b.f.b.v5.a(r6);	 Catch:{ all -> 0x0ef1 }
        r3 = r3.equals(r9);	 Catch:{ all -> 0x0ef1 }
        if (r3 == 0) goto L_0x0478;
    L_0x0412:
        r5.p(r6);	 Catch:{ all -> 0x0ef1 }
        r3 = r1.j;	 Catch:{ all -> 0x0ef1 }
        r3 = r3.d();	 Catch:{ all -> 0x0ef1 }
        r3 = r3.D();	 Catch:{ all -> 0x0ef1 }
        r9 = "Renaming ad_impression to _ai";
        r3.a(r9);	 Catch:{ all -> 0x0ef1 }
        r3 = r1.j;	 Catch:{ all -> 0x0ef1 }
        r3 = r3.d();	 Catch:{ all -> 0x0ef1 }
        r9 = 5;
        r3 = r3.x(r9);	 Catch:{ all -> 0x0ef1 }
        if (r3 == 0) goto L_0x0478;
    L_0x0431:
        r3 = 0;
    L_0x0432:
        r9 = r5.t();	 Catch:{ all -> 0x0ef1 }
        if (r3 >= r9) goto L_0x0478;
    L_0x0438:
        r9 = "ad_platform";
        r12 = r5.r(r3);	 Catch:{ all -> 0x0ef1 }
        r12 = r12.B();	 Catch:{ all -> 0x0ef1 }
        r9 = r9.equals(r12);	 Catch:{ all -> 0x0ef1 }
        if (r9 == 0) goto L_0x0475;
    L_0x0448:
        r9 = r5.r(r3);	 Catch:{ all -> 0x0ef1 }
        r9 = r9.G();	 Catch:{ all -> 0x0ef1 }
        r9 = android.text.TextUtils.isEmpty(r9);	 Catch:{ all -> 0x0ef1 }
        if (r9 != 0) goto L_0x0475;
    L_0x0456:
        r9 = "admob";
        r12 = r5.r(r3);	 Catch:{ all -> 0x0ef1 }
        r12 = r12.G();	 Catch:{ all -> 0x0ef1 }
        r9 = r9.equalsIgnoreCase(r12);	 Catch:{ all -> 0x0ef1 }
        if (r9 == 0) goto L_0x0475;
    L_0x0466:
        r9 = r1.j;	 Catch:{ all -> 0x0ef1 }
        r9 = r9.d();	 Catch:{ all -> 0x0ef1 }
        r9 = r9.B();	 Catch:{ all -> 0x0ef1 }
        r12 = "AdMob ad impression logged from app. Potentially duplicative.";
        r9.a(r12);	 Catch:{ all -> 0x0ef1 }
    L_0x0475:
        r3 = r3 + 1;
        goto L_0x0432;
    L_0x0478:
        r3 = r43.H();	 Catch:{ all -> 0x0ef1 }
        r9 = r8.a;	 Catch:{ all -> 0x0ef1 }
        r9 = r9.G1();	 Catch:{ all -> 0x0ef1 }
        r12 = r5.v();	 Catch:{ all -> 0x0ef1 }
        r3 = r3.y(r9, r12);	 Catch:{ all -> 0x0ef1 }
        r9 = "_c";
        if (r3 != 0) goto L_0x04e7;
    L_0x048e:
        r43.N();	 Catch:{ all -> 0x0ef1 }
        r12 = r5.v();	 Catch:{ all -> 0x0ef1 }
        b.i.b.f.N(r12);	 Catch:{ all -> 0x0ef1 }
        r32 = r6;
        r6 = r12.hashCode();	 Catch:{ all -> 0x0ef1 }
        r33 = r15;
        r15 = 94660; // 0x171c4 float:1.32647E-40 double:4.67683E-319;
        if (r6 == r15) goto L_0x04c4;
    L_0x04a5:
        r15 = 95025; // 0x17331 float:1.33158E-40 double:4.69486E-319;
        if (r6 == r15) goto L_0x04ba;
    L_0x04aa:
        r15 = 95027; // 0x17333 float:1.33161E-40 double:4.69496E-319;
        if (r6 == r15) goto L_0x04b0;
    L_0x04af:
        goto L_0x04ce;
    L_0x04b0:
        r6 = "_ui";
        r6 = r12.equals(r6);	 Catch:{ all -> 0x0ef1 }
        if (r6 == 0) goto L_0x04ce;
    L_0x04b8:
        r6 = 1;
        goto L_0x04cf;
    L_0x04ba:
        r6 = "_ug";
        r6 = r12.equals(r6);	 Catch:{ all -> 0x0ef1 }
        if (r6 == 0) goto L_0x04ce;
    L_0x04c2:
        r6 = 2;
        goto L_0x04cf;
    L_0x04c4:
        r6 = "_in";
        r6 = r12.equals(r6);	 Catch:{ all -> 0x0ef1 }
        if (r6 == 0) goto L_0x04ce;
    L_0x04cc:
        r6 = 0;
        goto L_0x04cf;
    L_0x04ce:
        r6 = -1;
    L_0x04cf:
        if (r6 == 0) goto L_0x04d9;
    L_0x04d1:
        r12 = 1;
        if (r6 == r12) goto L_0x04d9;
    L_0x04d4:
        r12 = 2;
        if (r6 == r12) goto L_0x04d9;
    L_0x04d7:
        r6 = 0;
        goto L_0x04da;
    L_0x04d9:
        r6 = 1;
    L_0x04da:
        if (r6 == 0) goto L_0x04dd;
    L_0x04dc:
        goto L_0x04eb;
    L_0x04dd:
        r35 = r2;
        r34 = r13;
        r36 = r14;
    L_0x04e3:
        r10 = r20;
        goto L_0x06b4;
    L_0x04e7:
        r32 = r6;
        r33 = r15;
    L_0x04eb:
        r34 = r13;
        r6 = 0;
        r12 = 0;
        r15 = 0;
    L_0x04f0:
        r13 = r5.t();	 Catch:{ all -> 0x0ef1 }
        r35 = r2;
        r2 = "_r";
        if (r6 >= r13) goto L_0x055b;
    L_0x04fa:
        r13 = r5.r(r6);	 Catch:{ all -> 0x0ef1 }
        r13 = r13.B();	 Catch:{ all -> 0x0ef1 }
        r13 = r9.equals(r13);	 Catch:{ all -> 0x0ef1 }
        if (r13 == 0) goto L_0x0526;
    L_0x0508:
        r2 = r5.r(r6);	 Catch:{ all -> 0x0ef1 }
        r2 = r2.t();	 Catch:{ all -> 0x0ef1 }
        r2 = (c.e.a.b.e.c.c1.a) r2;	 Catch:{ all -> 0x0ef1 }
        r12 = 1;
        r2.n(r12);	 Catch:{ all -> 0x0ef1 }
        r2 = r2.l();	 Catch:{ all -> 0x0ef1 }
        r2 = (c.e.a.b.e.c.u4) r2;	 Catch:{ all -> 0x0ef1 }
        r2 = (c.e.a.b.e.c.c1) r2;	 Catch:{ all -> 0x0ef1 }
        r5.m(r6, r2);	 Catch:{ all -> 0x0ef1 }
        r36 = r14;
        r12 = 1;
        goto L_0x0554;
    L_0x0526:
        r13 = r5.r(r6);	 Catch:{ all -> 0x0ef1 }
        r13 = r13.B();	 Catch:{ all -> 0x0ef1 }
        r2 = r2.equals(r13);	 Catch:{ all -> 0x0ef1 }
        if (r2 == 0) goto L_0x0552;
    L_0x0534:
        r2 = r5.r(r6);	 Catch:{ all -> 0x0ef1 }
        r2 = r2.t();	 Catch:{ all -> 0x0ef1 }
        r2 = (c.e.a.b.e.c.c1.a) r2;	 Catch:{ all -> 0x0ef1 }
        r36 = r14;
        r13 = 1;
        r2.n(r13);	 Catch:{ all -> 0x0ef1 }
        r2 = r2.l();	 Catch:{ all -> 0x0ef1 }
        r2 = (c.e.a.b.e.c.u4) r2;	 Catch:{ all -> 0x0ef1 }
        r2 = (c.e.a.b.e.c.c1) r2;	 Catch:{ all -> 0x0ef1 }
        r5.m(r6, r2);	 Catch:{ all -> 0x0ef1 }
        r15 = 1;
        goto L_0x0554;
    L_0x0552:
        r36 = r14;
    L_0x0554:
        r6 = r6 + 1;
        r2 = r35;
        r14 = r36;
        goto L_0x04f0;
    L_0x055b:
        r36 = r14;
        if (r12 != 0) goto L_0x058d;
    L_0x055f:
        if (r3 == 0) goto L_0x058d;
    L_0x0561:
        r6 = r1.j;	 Catch:{ all -> 0x0ef1 }
        r6 = r6.d();	 Catch:{ all -> 0x0ef1 }
        r6 = r6.D();	 Catch:{ all -> 0x0ef1 }
        r12 = "Marking event as conversion";
        r13 = r1.j;	 Catch:{ all -> 0x0ef1 }
        r13 = r13.u();	 Catch:{ all -> 0x0ef1 }
        r14 = r5.v();	 Catch:{ all -> 0x0ef1 }
        r13 = r13.u(r14);	 Catch:{ all -> 0x0ef1 }
        r6.b(r12, r13);	 Catch:{ all -> 0x0ef1 }
        r6 = c.e.a.b.e.c.c1.Q();	 Catch:{ all -> 0x0ef1 }
        r6.o(r9);	 Catch:{ all -> 0x0ef1 }
        r12 = 1;
        r6.n(r12);	 Catch:{ all -> 0x0ef1 }
        r5.o(r6);	 Catch:{ all -> 0x0ef1 }
    L_0x058d:
        if (r15 != 0) goto L_0x05bb;
    L_0x058f:
        r6 = r1.j;	 Catch:{ all -> 0x0ef1 }
        r6 = r6.d();	 Catch:{ all -> 0x0ef1 }
        r6 = r6.D();	 Catch:{ all -> 0x0ef1 }
        r12 = "Marking event as real-time";
        r13 = r1.j;	 Catch:{ all -> 0x0ef1 }
        r13 = r13.u();	 Catch:{ all -> 0x0ef1 }
        r14 = r5.v();	 Catch:{ all -> 0x0ef1 }
        r13 = r13.u(r14);	 Catch:{ all -> 0x0ef1 }
        r6.b(r12, r13);	 Catch:{ all -> 0x0ef1 }
        r6 = c.e.a.b.e.c.c1.Q();	 Catch:{ all -> 0x0ef1 }
        r6.o(r2);	 Catch:{ all -> 0x0ef1 }
        r12 = 1;
        r6.n(r12);	 Catch:{ all -> 0x0ef1 }
        r5.o(r6);	 Catch:{ all -> 0x0ef1 }
    L_0x05bb:
        r37 = r43.K();	 Catch:{ all -> 0x0ef1 }
        r38 = r43.V();	 Catch:{ all -> 0x0ef1 }
        r6 = r8.a;	 Catch:{ all -> 0x0ef1 }
        r40 = r6.G1();	 Catch:{ all -> 0x0ef1 }
        r41 = 0;
        r42 = 1;
        r6 = r37.y(r38, r40, r41, r42);	 Catch:{ all -> 0x0ef1 }
        r12 = r6.e;	 Catch:{ all -> 0x0ef1 }
        r6 = r1.j;	 Catch:{ all -> 0x0ef1 }
        r6 = r6.c();	 Catch:{ all -> 0x0ef1 }
        r14 = r8.a;	 Catch:{ all -> 0x0ef1 }
        r14 = r14.G1();	 Catch:{ all -> 0x0ef1 }
        r6 = r6.s(r14);	 Catch:{ all -> 0x0ef1 }
        r14 = (long) r6;	 Catch:{ all -> 0x0ef1 }
        r6 = (r12 > r14 ? 1 : (r12 == r14 ? 0 : -1));
        if (r6 <= 0) goto L_0x05ec;
    L_0x05e8:
        j(r5, r2);	 Catch:{ all -> 0x0ef1 }
        goto L_0x05ee;
    L_0x05ec:
        r20 = 1;
    L_0x05ee:
        r2 = r5.v();	 Catch:{ all -> 0x0ef1 }
        r2 = c.e.a.b.f.b.t9.X(r2);	 Catch:{ all -> 0x0ef1 }
        if (r2 == 0) goto L_0x04e3;
    L_0x05f8:
        if (r3 == 0) goto L_0x04e3;
    L_0x05fa:
        r37 = r43.K();	 Catch:{ all -> 0x0ef1 }
        r38 = r43.V();	 Catch:{ all -> 0x0ef1 }
        r2 = r8.a;	 Catch:{ all -> 0x0ef1 }
        r40 = r2.G1();	 Catch:{ all -> 0x0ef1 }
        r41 = 1;
        r42 = 0;
        r2 = r37.y(r38, r40, r41, r42);	 Catch:{ all -> 0x0ef1 }
        r12 = r2.c;	 Catch:{ all -> 0x0ef1 }
        r2 = r1.j;	 Catch:{ all -> 0x0ef1 }
        r2 = r2.c();	 Catch:{ all -> 0x0ef1 }
        r6 = r8.a;	 Catch:{ all -> 0x0ef1 }
        r6 = r6.G1();	 Catch:{ all -> 0x0ef1 }
        r14 = c.e.a.b.f.b.p.n;	 Catch:{ all -> 0x0ef1 }
        r2 = r2.q(r6, r14);	 Catch:{ all -> 0x0ef1 }
        r14 = (long) r2;	 Catch:{ all -> 0x0ef1 }
        r2 = (r12 > r14 ? 1 : (r12 == r14 ? 0 : -1));
        if (r2 <= 0) goto L_0x04e3;
    L_0x0629:
        r2 = r1.j;	 Catch:{ all -> 0x0ef1 }
        r2 = r2.d();	 Catch:{ all -> 0x0ef1 }
        r2 = r2.A();	 Catch:{ all -> 0x0ef1 }
        r6 = "Too many conversions. Not logging as conversion. appId";
        r12 = r8.a;	 Catch:{ all -> 0x0ef1 }
        r12 = r12.G1();	 Catch:{ all -> 0x0ef1 }
        r12 = c.e.a.b.f.b.q3.s(r12);	 Catch:{ all -> 0x0ef1 }
        r2.b(r6, r12);	 Catch:{ all -> 0x0ef1 }
        r2 = 0;
        r6 = 0;
        r12 = -1;
        r13 = 0;
    L_0x0646:
        r14 = r5.t();	 Catch:{ all -> 0x0ef1 }
        if (r2 >= r14) goto L_0x0671;
    L_0x064c:
        r14 = r5.r(r2);	 Catch:{ all -> 0x0ef1 }
        r15 = r14.B();	 Catch:{ all -> 0x0ef1 }
        r15 = r9.equals(r15);	 Catch:{ all -> 0x0ef1 }
        if (r15 == 0) goto L_0x0663;
    L_0x065a:
        r12 = r14.t();	 Catch:{ all -> 0x0ef1 }
        r12 = (c.e.a.b.e.c.c1.a) r12;	 Catch:{ all -> 0x0ef1 }
        r13 = r12;
        r12 = r2;
        goto L_0x066e;
    L_0x0663:
        r14 = r14.B();	 Catch:{ all -> 0x0ef1 }
        r14 = r10.equals(r14);	 Catch:{ all -> 0x0ef1 }
        if (r14 == 0) goto L_0x066e;
    L_0x066d:
        r6 = 1;
    L_0x066e:
        r2 = r2 + 1;
        goto L_0x0646;
    L_0x0671:
        if (r6 == 0) goto L_0x067a;
    L_0x0673:
        if (r13 == 0) goto L_0x067a;
    L_0x0675:
        r5.u(r12);	 Catch:{ all -> 0x0ef1 }
        goto L_0x04e3;
    L_0x067a:
        if (r13 == 0) goto L_0x0699;
    L_0x067c:
        r2 = r13.clone();	 Catch:{ all -> 0x0ef1 }
        r2 = (c.e.a.b.e.c.u4.b) r2;	 Catch:{ all -> 0x0ef1 }
        r2 = (c.e.a.b.e.c.c1.a) r2;	 Catch:{ all -> 0x0ef1 }
        r2.o(r10);	 Catch:{ all -> 0x0ef1 }
        r13 = 10;
        r2.n(r13);	 Catch:{ all -> 0x0ef1 }
        r2 = r2.l();	 Catch:{ all -> 0x0ef1 }
        r2 = (c.e.a.b.e.c.u4) r2;	 Catch:{ all -> 0x0ef1 }
        r2 = (c.e.a.b.e.c.c1) r2;	 Catch:{ all -> 0x0ef1 }
        r5.m(r12, r2);	 Catch:{ all -> 0x0ef1 }
        goto L_0x04e3;
    L_0x0699:
        r2 = r1.j;	 Catch:{ all -> 0x0ef1 }
        r2 = r2.d();	 Catch:{ all -> 0x0ef1 }
        r2 = r2.z();	 Catch:{ all -> 0x0ef1 }
        r6 = "Did not find conversion parameter. appId";
        r10 = r8.a;	 Catch:{ all -> 0x0ef1 }
        r10 = r10.G1();	 Catch:{ all -> 0x0ef1 }
        r10 = c.e.a.b.f.b.q3.s(r10);	 Catch:{ all -> 0x0ef1 }
        r2.b(r6, r10);	 Catch:{ all -> 0x0ef1 }
        goto L_0x04e3;
    L_0x06b4:
        if (r3 == 0) goto L_0x0777;
    L_0x06b6:
        r2 = new java.util.ArrayList;	 Catch:{ all -> 0x0ef1 }
        r3 = r5.s();	 Catch:{ all -> 0x0ef1 }
        r2.<init>(r3);	 Catch:{ all -> 0x0ef1 }
        r3 = 0;
        r6 = -1;
        r12 = -1;
    L_0x06c2:
        r13 = r2.size();	 Catch:{ all -> 0x0ef1 }
        r14 = "currency";
        r15 = "value";
        if (r3 >= r13) goto L_0x06f2;
    L_0x06cc:
        r13 = r2.get(r3);	 Catch:{ all -> 0x0ef1 }
        r13 = (c.e.a.b.e.c.c1) r13;	 Catch:{ all -> 0x0ef1 }
        r13 = r13.B();	 Catch:{ all -> 0x0ef1 }
        r13 = r15.equals(r13);	 Catch:{ all -> 0x0ef1 }
        if (r13 == 0) goto L_0x06de;
    L_0x06dc:
        r6 = r3;
        goto L_0x06ef;
    L_0x06de:
        r13 = r2.get(r3);	 Catch:{ all -> 0x0ef1 }
        r13 = (c.e.a.b.e.c.c1) r13;	 Catch:{ all -> 0x0ef1 }
        r13 = r13.B();	 Catch:{ all -> 0x0ef1 }
        r13 = r14.equals(r13);	 Catch:{ all -> 0x0ef1 }
        if (r13 == 0) goto L_0x06ef;
    L_0x06ee:
        r12 = r3;
    L_0x06ef:
        r3 = r3 + 1;
        goto L_0x06c2;
    L_0x06f2:
        r3 = -1;
        if (r6 == r3) goto L_0x0778;
    L_0x06f5:
        r3 = r2.get(r6);	 Catch:{ all -> 0x0ef1 }
        r3 = (c.e.a.b.e.c.c1) r3;	 Catch:{ all -> 0x0ef1 }
        r3 = r3.I();	 Catch:{ all -> 0x0ef1 }
        if (r3 != 0) goto L_0x0728;
    L_0x0701:
        r3 = r2.get(r6);	 Catch:{ all -> 0x0ef1 }
        r3 = (c.e.a.b.e.c.c1) r3;	 Catch:{ all -> 0x0ef1 }
        r3 = r3.M();	 Catch:{ all -> 0x0ef1 }
        if (r3 != 0) goto L_0x0728;
    L_0x070d:
        r2 = r1.j;	 Catch:{ all -> 0x0ef1 }
        r2 = r2.d();	 Catch:{ all -> 0x0ef1 }
        r2 = r2.B();	 Catch:{ all -> 0x0ef1 }
        r3 = "Value must be specified with a numeric type.";
        r2.a(r3);	 Catch:{ all -> 0x0ef1 }
        r5.u(r6);	 Catch:{ all -> 0x0ef1 }
        j(r5, r9);	 Catch:{ all -> 0x0ef1 }
        r2 = 18;
        i(r5, r2, r15);	 Catch:{ all -> 0x0ef1 }
        goto L_0x0777;
    L_0x0728:
        r3 = -1;
        if (r12 != r3) goto L_0x072e;
    L_0x072b:
        r2 = 1;
        r13 = 3;
        goto L_0x075a;
    L_0x072e:
        r2 = r2.get(r12);	 Catch:{ all -> 0x0ef1 }
        r2 = (c.e.a.b.e.c.c1) r2;	 Catch:{ all -> 0x0ef1 }
        r2 = r2.G();	 Catch:{ all -> 0x0ef1 }
        r12 = r2.length();	 Catch:{ all -> 0x0ef1 }
        r13 = 3;
        if (r12 == r13) goto L_0x0740;
    L_0x073f:
        goto L_0x0751;
    L_0x0740:
        r12 = 0;
    L_0x0741:
        r15 = r2.length();	 Catch:{ all -> 0x0ef1 }
        if (r12 >= r15) goto L_0x0759;
    L_0x0747:
        r15 = r2.codePointAt(r12);	 Catch:{ all -> 0x0ef1 }
        r16 = java.lang.Character.isLetter(r15);	 Catch:{ all -> 0x0ef1 }
        if (r16 != 0) goto L_0x0753;
    L_0x0751:
        r2 = 1;
        goto L_0x075a;
    L_0x0753:
        r15 = java.lang.Character.charCount(r15);	 Catch:{ all -> 0x0ef1 }
        r12 = r12 + r15;
        goto L_0x0741;
    L_0x0759:
        r2 = 0;
    L_0x075a:
        if (r2 == 0) goto L_0x0779;
    L_0x075c:
        r2 = r1.j;	 Catch:{ all -> 0x0ef1 }
        r2 = r2.d();	 Catch:{ all -> 0x0ef1 }
        r2 = r2.B();	 Catch:{ all -> 0x0ef1 }
        r12 = "Value parameter discarded. You must also supply a 3-letter ISO_4217 currency code in the currency parameter.";
        r2.a(r12);	 Catch:{ all -> 0x0ef1 }
        r5.u(r6);	 Catch:{ all -> 0x0ef1 }
        j(r5, r9);	 Catch:{ all -> 0x0ef1 }
        r2 = 19;
        i(r5, r2, r14);	 Catch:{ all -> 0x0ef1 }
        goto L_0x0779;
    L_0x0777:
        r3 = -1;
    L_0x0778:
        r13 = 3;
    L_0x0779:
        r2 = r1.j;	 Catch:{ all -> 0x0ef1 }
        r2 = r2.c();	 Catch:{ all -> 0x0ef1 }
        r6 = r8.a;	 Catch:{ all -> 0x0ef1 }
        r6 = r6.G1();	 Catch:{ all -> 0x0ef1 }
        r9 = c.e.a.b.f.b.p.T;	 Catch:{ all -> 0x0ef1 }
        r2 = r2.v(r6, r9);	 Catch:{ all -> 0x0ef1 }
        if (r2 == 0) goto L_0x0934;
    L_0x078d:
        r2 = r5.v();	 Catch:{ all -> 0x0ef1 }
        r2 = r11.equals(r2);	 Catch:{ all -> 0x0ef1 }
        r14 = 1000; // 0x3e8 float:1.401E-42 double:4.94E-321;
        if (r2 == 0) goto L_0x07ed;
    L_0x0799:
        r43.N();	 Catch:{ all -> 0x0ef1 }
        r2 = r5.l();	 Catch:{ all -> 0x0ef1 }
        r2 = (c.e.a.b.e.c.u4) r2;	 Catch:{ all -> 0x0ef1 }
        r2 = (c.e.a.b.e.c.a1) r2;	 Catch:{ all -> 0x0ef1 }
        r2 = c.e.a.b.f.b.q9.w(r2, r7);	 Catch:{ all -> 0x0ef1 }
        if (r2 != 0) goto L_0x07dd;
    L_0x07aa:
        if (r36 == 0) goto L_0x07d6;
    L_0x07ac:
        r6 = r36.w();	 Catch:{ all -> 0x0ef1 }
        r19 = r5.w();	 Catch:{ all -> 0x0ef1 }
        r6 = r6 - r19;
        r6 = java.lang.Math.abs(r6);	 Catch:{ all -> 0x0ef1 }
        r2 = (r6 > r14 ? 1 : (r6 == r14 ? 0 : -1));
        if (r2 > 0) goto L_0x07d6;
    L_0x07be:
        r2 = r36.clone();	 Catch:{ all -> 0x0ef1 }
        r2 = (c.e.a.b.e.c.u4.b) r2;	 Catch:{ all -> 0x0ef1 }
        r2 = (c.e.a.b.e.c.a1.a) r2;	 Catch:{ all -> 0x0ef1 }
        r6 = r1.u(r5, r2);	 Catch:{ all -> 0x0ef1 }
        if (r6 == 0) goto L_0x07d6;
    L_0x07cc:
        r6 = r35;
        r6.n(r4, r2);	 Catch:{ all -> 0x0ef1 }
        r9 = r23;
        r7 = r33;
        goto L_0x0835;
    L_0x07d6:
        r6 = r35;
        r34 = r5;
        r15 = r21;
        goto L_0x07e1;
    L_0x07dd:
        r6 = r35;
        r15 = r33;
    L_0x07e1:
        r16 = r4;
        r14 = r22;
        r9 = r23;
    L_0x07e7:
        r4 = r28;
        r3 = r29;
        goto L_0x0943;
    L_0x07ed:
        r6 = r35;
        r2 = "_vs";
        r7 = r5.v();	 Catch:{ all -> 0x0ef1 }
        r2 = r2.equals(r7);	 Catch:{ all -> 0x0ef1 }
        if (r2 == 0) goto L_0x0852;
    L_0x07fb:
        r43.N();	 Catch:{ all -> 0x0ef1 }
        r2 = r5.l();	 Catch:{ all -> 0x0ef1 }
        r2 = (c.e.a.b.e.c.u4) r2;	 Catch:{ all -> 0x0ef1 }
        r2 = (c.e.a.b.e.c.a1) r2;	 Catch:{ all -> 0x0ef1 }
        r9 = r23;
        r2 = c.e.a.b.f.b.q9.w(r2, r9);	 Catch:{ all -> 0x0ef1 }
        if (r2 != 0) goto L_0x084e;
    L_0x080e:
        if (r34 == 0) goto L_0x0844;
    L_0x0810:
        r19 = r34.w();	 Catch:{ all -> 0x0ef1 }
        r23 = r5.w();	 Catch:{ all -> 0x0ef1 }
        r19 = r19 - r23;
        r19 = java.lang.Math.abs(r19);	 Catch:{ all -> 0x0ef1 }
        r2 = (r19 > r14 ? 1 : (r19 == r14 ? 0 : -1));
        if (r2 > 0) goto L_0x0844;
    L_0x0822:
        r2 = r34.clone();	 Catch:{ all -> 0x0ef1 }
        r2 = (c.e.a.b.e.c.u4.b) r2;	 Catch:{ all -> 0x0ef1 }
        r2 = (c.e.a.b.e.c.a1.a) r2;	 Catch:{ all -> 0x0ef1 }
        r7 = r1.u(r2, r5);	 Catch:{ all -> 0x0ef1 }
        if (r7 == 0) goto L_0x0844;
    L_0x0830:
        r7 = r33;
        r6.n(r7, r2);	 Catch:{ all -> 0x0ef1 }
    L_0x0835:
        r16 = r4;
        r15 = r7;
        r14 = r22;
        r4 = r28;
        r3 = r29;
        r34 = 0;
        r36 = 0;
        goto L_0x0943;
    L_0x0844:
        r7 = r33;
        r36 = r5;
        r15 = r7;
        r16 = r21;
        r14 = r22;
        goto L_0x07e7;
    L_0x084e:
        r7 = r33;
        goto L_0x092b;
    L_0x0852:
        r9 = r23;
        r7 = r33;
        r2 = r1.j;	 Catch:{ all -> 0x0ef1 }
        r2 = r2.c();	 Catch:{ all -> 0x0ef1 }
        r12 = r8.a;	 Catch:{ all -> 0x0ef1 }
        r12 = r12.G1();	 Catch:{ all -> 0x0ef1 }
        r14 = c.e.a.b.f.b.p.m0;	 Catch:{ all -> 0x0ef1 }
        r2 = r2.v(r12, r14);	 Catch:{ all -> 0x0ef1 }
        if (r2 == 0) goto L_0x092b;
    L_0x086a:
        r2 = "_ab";
        r12 = r5.v();	 Catch:{ all -> 0x0ef1 }
        r2 = r2.equals(r12);	 Catch:{ all -> 0x0ef1 }
        if (r2 == 0) goto L_0x092b;
    L_0x0876:
        r43.N();	 Catch:{ all -> 0x0ef1 }
        r2 = r5.l();	 Catch:{ all -> 0x0ef1 }
        r2 = (c.e.a.b.e.c.u4) r2;	 Catch:{ all -> 0x0ef1 }
        r2 = (c.e.a.b.e.c.a1) r2;	 Catch:{ all -> 0x0ef1 }
        r2 = c.e.a.b.f.b.q9.w(r2, r9);	 Catch:{ all -> 0x0ef1 }
        if (r2 != 0) goto L_0x092b;
    L_0x0887:
        if (r34 == 0) goto L_0x092b;
    L_0x0889:
        r14 = r34.w();	 Catch:{ all -> 0x0ef1 }
        r19 = r5.w();	 Catch:{ all -> 0x0ef1 }
        r14 = r14 - r19;
        r14 = java.lang.Math.abs(r14);	 Catch:{ all -> 0x0ef1 }
        r19 = 4000; // 0xfa0 float:5.605E-42 double:1.9763E-320;
        r2 = (r14 > r19 ? 1 : (r14 == r19 ? 0 : -1));
        if (r2 > 0) goto L_0x092b;
    L_0x089d:
        r2 = r34.clone();	 Catch:{ all -> 0x0ef1 }
        r2 = (c.e.a.b.e.c.u4.b) r2;	 Catch:{ all -> 0x0ef1 }
        r2 = (c.e.a.b.e.c.a1.a) r2;	 Catch:{ all -> 0x0ef1 }
        r1.A(r2, r5);	 Catch:{ all -> 0x0ef1 }
        r12 = r2.v();	 Catch:{ all -> 0x0ef1 }
        r12 = r11.equals(r12);	 Catch:{ all -> 0x0ef1 }
        b.i.b.f.J(r12);	 Catch:{ all -> 0x0ef1 }
        r43.N();	 Catch:{ all -> 0x0ef1 }
        r12 = r2.l();	 Catch:{ all -> 0x0ef1 }
        r12 = (c.e.a.b.e.c.u4) r12;	 Catch:{ all -> 0x0ef1 }
        r12 = (c.e.a.b.e.c.a1) r12;	 Catch:{ all -> 0x0ef1 }
        r14 = r22;
        r12 = c.e.a.b.f.b.q9.w(r12, r14);	 Catch:{ all -> 0x0ef1 }
        r43.N();	 Catch:{ all -> 0x0ef1 }
        r15 = r2.l();	 Catch:{ all -> 0x0ef1 }
        r15 = (c.e.a.b.e.c.u4) r15;	 Catch:{ all -> 0x0ef1 }
        r15 = (c.e.a.b.e.c.a1) r15;	 Catch:{ all -> 0x0ef1 }
        r3 = r29;
        r15 = c.e.a.b.f.b.q9.w(r15, r3);	 Catch:{ all -> 0x0ef1 }
        r43.N();	 Catch:{ all -> 0x0ef1 }
        r16 = r2.l();	 Catch:{ all -> 0x0ef1 }
        r16 = (c.e.a.b.e.c.u4) r16;	 Catch:{ all -> 0x0ef1 }
        r13 = r16;
        r13 = (c.e.a.b.e.c.a1) r13;	 Catch:{ all -> 0x0ef1 }
        r16 = r4;
        r4 = r28;
        r13 = c.e.a.b.f.b.q9.w(r13, r4);	 Catch:{ all -> 0x0ef1 }
        if (r12 == 0) goto L_0x08f1;
    L_0x08ec:
        r12 = r12.G();	 Catch:{ all -> 0x0ef1 }
        goto L_0x08f3;
    L_0x08f1:
        r12 = r26;
    L_0x08f3:
        r22 = android.text.TextUtils.isEmpty(r12);	 Catch:{ all -> 0x0ef1 }
        if (r22 != 0) goto L_0x08ff;
    L_0x08f9:
        r43.N();	 Catch:{ all -> 0x0ef1 }
        c.e.a.b.f.b.q9.E(r5, r14, r12);	 Catch:{ all -> 0x0ef1 }
    L_0x08ff:
        if (r15 == 0) goto L_0x0906;
    L_0x0901:
        r12 = r15.G();	 Catch:{ all -> 0x0ef1 }
        goto L_0x0908;
    L_0x0906:
        r12 = r26;
    L_0x0908:
        r15 = android.text.TextUtils.isEmpty(r12);	 Catch:{ all -> 0x0ef1 }
        if (r15 != 0) goto L_0x0914;
    L_0x090e:
        r43.N();	 Catch:{ all -> 0x0ef1 }
        c.e.a.b.f.b.q9.E(r5, r3, r12);	 Catch:{ all -> 0x0ef1 }
    L_0x0914:
        if (r13 == 0) goto L_0x0924;
    L_0x0916:
        r43.N();	 Catch:{ all -> 0x0ef1 }
        r12 = r13.J();	 Catch:{ all -> 0x0ef1 }
        r12 = java.lang.Long.valueOf(r12);	 Catch:{ all -> 0x0ef1 }
        c.e.a.b.f.b.q9.E(r5, r4, r12);	 Catch:{ all -> 0x0ef1 }
    L_0x0924:
        r6.n(r7, r2);	 Catch:{ all -> 0x0ef1 }
        r15 = r7;
        r34 = 0;
        goto L_0x0943;
    L_0x092b:
        r16 = r4;
        r14 = r22;
        r4 = r28;
        r3 = r29;
        goto L_0x0942;
    L_0x0934:
        r16 = r4;
        r14 = r22;
        r9 = r23;
        r4 = r28;
        r3 = r29;
        r7 = r33;
        r6 = r35;
    L_0x0942:
        r15 = r7;
    L_0x0943:
        if (r31 != 0) goto L_0x09a2;
    L_0x0945:
        r2 = r5.v();	 Catch:{ all -> 0x0ef1 }
        r2 = r11.equals(r2);	 Catch:{ all -> 0x0ef1 }
        if (r2 == 0) goto L_0x09a2;
    L_0x094f:
        r2 = r5.t();	 Catch:{ all -> 0x0ef1 }
        if (r2 != 0) goto L_0x096f;
    L_0x0955:
        r2 = r1.j;	 Catch:{ all -> 0x0ef1 }
        r2 = r2.d();	 Catch:{ all -> 0x0ef1 }
        r2 = r2.A();	 Catch:{ all -> 0x0ef1 }
        r7 = "Engagement event does not contain any parameters. appId";
        r9 = r8.a;	 Catch:{ all -> 0x0ef1 }
        r9 = r9.G1();	 Catch:{ all -> 0x0ef1 }
        r9 = c.e.a.b.f.b.q3.s(r9);	 Catch:{ all -> 0x0ef1 }
        r2.b(r7, r9);	 Catch:{ all -> 0x0ef1 }
        goto L_0x09a2;
    L_0x096f:
        r43.N();	 Catch:{ all -> 0x0ef1 }
        r2 = r5.l();	 Catch:{ all -> 0x0ef1 }
        r2 = (c.e.a.b.e.c.u4) r2;	 Catch:{ all -> 0x0ef1 }
        r2 = (c.e.a.b.e.c.a1) r2;	 Catch:{ all -> 0x0ef1 }
        r2 = c.e.a.b.f.b.q9.R(r2, r9);	 Catch:{ all -> 0x0ef1 }
        r2 = (java.lang.Long) r2;	 Catch:{ all -> 0x0ef1 }
        if (r2 != 0) goto L_0x099c;
    L_0x0982:
        r2 = r1.j;	 Catch:{ all -> 0x0ef1 }
        r2 = r2.d();	 Catch:{ all -> 0x0ef1 }
        r2 = r2.A();	 Catch:{ all -> 0x0ef1 }
        r7 = "Engagement event does not include duration. appId";
        r9 = r8.a;	 Catch:{ all -> 0x0ef1 }
        r9 = r9.G1();	 Catch:{ all -> 0x0ef1 }
        r9 = c.e.a.b.f.b.q3.s(r9);	 Catch:{ all -> 0x0ef1 }
        r2.b(r7, r9);	 Catch:{ all -> 0x0ef1 }
        goto L_0x09a2;
    L_0x099c:
        r11 = r2.longValue();	 Catch:{ all -> 0x0ef1 }
        r17 = r17 + r11;
    L_0x09a2:
        r2 = r8.c;	 Catch:{ all -> 0x0ef1 }
        r7 = r5.l();	 Catch:{ all -> 0x0ef1 }
        r7 = (c.e.a.b.e.c.u4) r7;	 Catch:{ all -> 0x0ef1 }
        r7 = (c.e.a.b.e.c.a1) r7;	 Catch:{ all -> 0x0ef1 }
        r9 = r30;
        r2.set(r9, r7);	 Catch:{ all -> 0x0ef1 }
        r11 = r21 + 1;
        r6.p(r5);	 Catch:{ all -> 0x0ef1 }
        r13 = r34;
    L_0x09b8:
        r12 = r9 + 1;
        r29 = r3;
        r28 = r4;
        r2 = r6;
        r9 = r14;
        r4 = r16;
        r3 = r31;
        r6 = r32;
        r14 = r36;
        goto L_0x0321;
    L_0x09ca:
        r6 = r2;
        r31 = r3;
        r9 = r23;
        if (r31 == 0) goto L_0x0a23;
    L_0x09d1:
        r2 = r21;
        r3 = 0;
    L_0x09d4:
        if (r3 >= r2) goto L_0x0a23;
    L_0x09d6:
        r4 = r6.y(r3);	 Catch:{ all -> 0x0ef1 }
        r5 = r4.F();	 Catch:{ all -> 0x0ef1 }
        r5 = r11.equals(r5);	 Catch:{ all -> 0x0ef1 }
        if (r5 == 0) goto L_0x09f5;
    L_0x09e4:
        r43.N();	 Catch:{ all -> 0x0ef1 }
        r5 = c.e.a.b.f.b.q9.w(r4, r7);	 Catch:{ all -> 0x0ef1 }
        if (r5 == 0) goto L_0x09f5;
    L_0x09ed:
        r6.C(r3);	 Catch:{ all -> 0x0ef1 }
        r2 = r2 + -1;
        r3 = r3 + -1;
        goto L_0x0a20;
    L_0x09f5:
        r43.N();	 Catch:{ all -> 0x0ef1 }
        r4 = c.e.a.b.f.b.q9.w(r4, r9);	 Catch:{ all -> 0x0ef1 }
        if (r4 == 0) goto L_0x0a20;
    L_0x09fe:
        r5 = r4.I();	 Catch:{ all -> 0x0ef1 }
        if (r5 == 0) goto L_0x0a0d;
    L_0x0a04:
        r4 = r4.J();	 Catch:{ all -> 0x0ef1 }
        r4 = java.lang.Long.valueOf(r4);	 Catch:{ all -> 0x0ef1 }
        goto L_0x0a0e;
    L_0x0a0d:
        r4 = 0;
    L_0x0a0e:
        if (r4 == 0) goto L_0x0a20;
    L_0x0a10:
        r12 = r4.longValue();	 Catch:{ all -> 0x0ef1 }
        r14 = 0;
        r5 = (r12 > r14 ? 1 : (r12 == r14 ? 0 : -1));
        if (r5 <= 0) goto L_0x0a20;
    L_0x0a1a:
        r4 = r4.longValue();	 Catch:{ all -> 0x0ef1 }
        r17 = r17 + r4;
    L_0x0a20:
        r4 = 1;
        r3 = r3 + r4;
        goto L_0x09d4;
    L_0x0a23:
        r2 = r17;
        r4 = 0;
        r1.k(r6, r2, r4);	 Catch:{ all -> 0x0ef1 }
        r4 = r6.w();	 Catch:{ all -> 0x0ef1 }
        r4 = r4.iterator();	 Catch:{ all -> 0x0ef1 }
    L_0x0a31:
        r5 = r4.hasNext();	 Catch:{ all -> 0x0ef1 }
        if (r5 == 0) goto L_0x0a4b;
    L_0x0a37:
        r5 = r4.next();	 Catch:{ all -> 0x0ef1 }
        r5 = (c.e.a.b.e.c.a1) r5;	 Catch:{ all -> 0x0ef1 }
        r7 = "_s";
        r5 = r5.F();	 Catch:{ all -> 0x0ef1 }
        r5 = r7.equals(r5);	 Catch:{ all -> 0x0ef1 }
        if (r5 == 0) goto L_0x0a31;
    L_0x0a49:
        r4 = 1;
        goto L_0x0a4c;
    L_0x0a4b:
        r4 = 0;
    L_0x0a4c:
        r5 = "_se";
        if (r4 == 0) goto L_0x0a5b;
    L_0x0a50:
        r4 = r43.K();	 Catch:{ all -> 0x0ef1 }
        r7 = r6.f0();	 Catch:{ all -> 0x0ef1 }
        r4.V(r7, r5);	 Catch:{ all -> 0x0ef1 }
    L_0x0a5b:
        r4 = "_sid";
        r4 = c.e.a.b.f.b.q9.s(r6, r4);	 Catch:{ all -> 0x0ef1 }
        if (r4 < 0) goto L_0x0a65;
    L_0x0a63:
        r4 = 1;
        goto L_0x0a66;
    L_0x0a65:
        r4 = 0;
    L_0x0a66:
        if (r4 == 0) goto L_0x0a6d;
    L_0x0a68:
        r4 = 1;
        r1.k(r6, r2, r4);	 Catch:{ all -> 0x0ef1 }
        goto L_0x0a8f;
    L_0x0a6d:
        r2 = c.e.a.b.f.b.q9.s(r6, r5);	 Catch:{ all -> 0x0ef1 }
        if (r2 < 0) goto L_0x0a8f;
    L_0x0a73:
        r6.M(r2);	 Catch:{ all -> 0x0ef1 }
        r2 = r1.j;	 Catch:{ all -> 0x0ef1 }
        r2 = r2.d();	 Catch:{ all -> 0x0ef1 }
        r2 = r2.z();	 Catch:{ all -> 0x0ef1 }
        r3 = "Session engagement user property is in the bundle without session ID. appId";
        r4 = r8.a;	 Catch:{ all -> 0x0ef1 }
        r4 = r4.G1();	 Catch:{ all -> 0x0ef1 }
        r4 = c.e.a.b.f.b.q3.s(r4);	 Catch:{ all -> 0x0ef1 }
        r2.b(r3, r4);	 Catch:{ all -> 0x0ef1 }
    L_0x0a8f:
        r2 = r43.N();	 Catch:{ all -> 0x0ef1 }
        r3 = r2.d();	 Catch:{ all -> 0x0ef1 }
        r3 = r3.D();	 Catch:{ all -> 0x0ef1 }
        r4 = "Checking account type status for ad personalization signals";
        r3.a(r4);	 Catch:{ all -> 0x0ef1 }
        r3 = r2.r();	 Catch:{ all -> 0x0ef1 }
        r4 = r6.f0();	 Catch:{ all -> 0x0ef1 }
        r3 = r3.A(r4);	 Catch:{ all -> 0x0ef1 }
        if (r3 == 0) goto L_0x0b1d;
    L_0x0aae:
        r3 = r2.q();	 Catch:{ all -> 0x0ef1 }
        r4 = r6.f0();	 Catch:{ all -> 0x0ef1 }
        r3 = r3.T(r4);	 Catch:{ all -> 0x0ef1 }
        if (r3 == 0) goto L_0x0b1d;
    L_0x0abc:
        r3 = r3.h();	 Catch:{ all -> 0x0ef1 }
        if (r3 == 0) goto L_0x0b1d;
    L_0x0ac2:
        r3 = r2.i();	 Catch:{ all -> 0x0ef1 }
        r3 = r3.w();	 Catch:{ all -> 0x0ef1 }
        if (r3 == 0) goto L_0x0b1d;
    L_0x0acc:
        r3 = r2.d();	 Catch:{ all -> 0x0ef1 }
        r3 = r3.C();	 Catch:{ all -> 0x0ef1 }
        r4 = "Turning off ad personalization due to account type";
        r3.a(r4);	 Catch:{ all -> 0x0ef1 }
        r3 = c.e.a.b.e.c.i1.L();	 Catch:{ all -> 0x0ef1 }
        r4 = r27;
        r3.n(r4);	 Catch:{ all -> 0x0ef1 }
        r2 = r2.i();	 Catch:{ all -> 0x0ef1 }
        r9 = r2.v();	 Catch:{ all -> 0x0ef1 }
        r3.m(r9);	 Catch:{ all -> 0x0ef1 }
        r9 = 1;
        r3.o(r9);	 Catch:{ all -> 0x0ef1 }
        r2 = r3.l();	 Catch:{ all -> 0x0ef1 }
        r2 = (c.e.a.b.e.c.u4) r2;	 Catch:{ all -> 0x0ef1 }
        r2 = (c.e.a.b.e.c.i1) r2;	 Catch:{ all -> 0x0ef1 }
        r3 = 0;
    L_0x0afb:
        r5 = r6.L();	 Catch:{ all -> 0x0ef1 }
        if (r3 >= r5) goto L_0x0b17;
    L_0x0b01:
        r5 = r6.J(r3);	 Catch:{ all -> 0x0ef1 }
        r5 = r5.D();	 Catch:{ all -> 0x0ef1 }
        r5 = r4.equals(r5);	 Catch:{ all -> 0x0ef1 }
        if (r5 == 0) goto L_0x0b14;
    L_0x0b0f:
        r6.o(r3, r2);	 Catch:{ all -> 0x0ef1 }
        r3 = 1;
        goto L_0x0b18;
    L_0x0b14:
        r3 = r3 + 1;
        goto L_0x0afb;
    L_0x0b17:
        r3 = 0;
    L_0x0b18:
        if (r3 != 0) goto L_0x0b1d;
    L_0x0b1a:
        r6.s(r2);	 Catch:{ all -> 0x0ef1 }
    L_0x0b1d:
        r2 = 9223372036854775807; // 0x7fffffffffffffff float:NaN double:NaN;
        r6.z(r2);	 Catch:{ all -> 0x0ef1 }
        r2 = -9223372036854775808;
        r6.D(r2);	 Catch:{ all -> 0x0ef1 }
        r2 = 0;
    L_0x0b2b:
        r3 = r6.x();	 Catch:{ all -> 0x0ef1 }
        if (r2 >= r3) goto L_0x0b5e;
    L_0x0b31:
        r3 = r6.y(r2);	 Catch:{ all -> 0x0ef1 }
        r4 = r3.H();	 Catch:{ all -> 0x0ef1 }
        r9 = r6.P();	 Catch:{ all -> 0x0ef1 }
        r7 = (r4 > r9 ? 1 : (r4 == r9 ? 0 : -1));
        if (r7 >= 0) goto L_0x0b48;
    L_0x0b41:
        r4 = r3.H();	 Catch:{ all -> 0x0ef1 }
        r6.z(r4);	 Catch:{ all -> 0x0ef1 }
    L_0x0b48:
        r4 = r3.H();	 Catch:{ all -> 0x0ef1 }
        r9 = r6.T();	 Catch:{ all -> 0x0ef1 }
        r7 = (r4 > r9 ? 1 : (r4 == r9 ? 0 : -1));
        if (r7 <= 0) goto L_0x0b5b;
    L_0x0b54:
        r3 = r3.H();	 Catch:{ all -> 0x0ef1 }
        r6.D(r3);	 Catch:{ all -> 0x0ef1 }
    L_0x0b5b:
        r2 = r2 + 1;
        goto L_0x0b2b;
    L_0x0b5e:
        r2 = c.e.a.b.e.c.jb.a();	 Catch:{ all -> 0x0ef1 }
        if (r2 == 0) goto L_0x0b79;
    L_0x0b64:
        r2 = r1.j;	 Catch:{ all -> 0x0ef1 }
        r2 = r2.c();	 Catch:{ all -> 0x0ef1 }
        r3 = r6.f0();	 Catch:{ all -> 0x0ef1 }
        r4 = c.e.a.b.f.b.p.G0;	 Catch:{ all -> 0x0ef1 }
        r2 = r2.v(r3, r4);	 Catch:{ all -> 0x0ef1 }
        if (r2 == 0) goto L_0x0b79;
    L_0x0b76:
        r6.q0();	 Catch:{ all -> 0x0ef1 }
    L_0x0b79:
        r6.o0();	 Catch:{ all -> 0x0ef1 }
        r9 = r43.M();	 Catch:{ all -> 0x0ef1 }
        r10 = r6.f0();	 Catch:{ all -> 0x0ef1 }
        r11 = r6.w();	 Catch:{ all -> 0x0ef1 }
        r12 = r6.K();	 Catch:{ all -> 0x0ef1 }
        r2 = r6.P();	 Catch:{ all -> 0x0ef1 }
        r13 = java.lang.Long.valueOf(r2);	 Catch:{ all -> 0x0ef1 }
        r2 = r6.T();	 Catch:{ all -> 0x0ef1 }
        r14 = java.lang.Long.valueOf(r2);	 Catch:{ all -> 0x0ef1 }
        r2 = r9.t(r10, r11, r12, r13, r14);	 Catch:{ all -> 0x0ef1 }
        r6.E(r2);	 Catch:{ all -> 0x0ef1 }
        r2 = r1.j;	 Catch:{ all -> 0x0ef1 }
        r2 = r2.c();	 Catch:{ all -> 0x0ef1 }
        r3 = r8.a;	 Catch:{ all -> 0x0ef1 }
        r3 = r3.G1();	 Catch:{ all -> 0x0ef1 }
        r2 = r2.A(r3);	 Catch:{ all -> 0x0ef1 }
        if (r2 == 0) goto L_0x0ef6;
    L_0x0bb5:
        r2 = new java.util.HashMap;	 Catch:{ all -> 0x0ef1 }
        r2.<init>();	 Catch:{ all -> 0x0ef1 }
        r3 = new java.util.ArrayList;	 Catch:{ all -> 0x0ef1 }
        r3.<init>();	 Catch:{ all -> 0x0ef1 }
        r4 = r1.j;	 Catch:{ all -> 0x0ef1 }
        r4 = r4.t();	 Catch:{ all -> 0x0ef1 }
        r4 = r4.v0();	 Catch:{ all -> 0x0ef1 }
        r5 = 0;
    L_0x0bca:
        r7 = r6.x();	 Catch:{ all -> 0x0ef1 }
        if (r5 >= r7) goto L_0x0ebc;
    L_0x0bd0:
        r7 = r6.y(r5);	 Catch:{ all -> 0x0ef1 }
        r7 = r7.t();	 Catch:{ all -> 0x0ef1 }
        r7 = (c.e.a.b.e.c.a1.a) r7;	 Catch:{ all -> 0x0ef1 }
        r9 = r7.v();	 Catch:{ all -> 0x0ef1 }
        r10 = "_ep";
        r9 = r9.equals(r10);	 Catch:{ all -> 0x0ef1 }
        r10 = "_sr";
        r11 = "_efs";
        if (r9 == 0) goto L_0x0c54;
    L_0x0bea:
        r43.N();	 Catch:{ all -> 0x0ef1 }
        r9 = r7.l();	 Catch:{ all -> 0x0ef1 }
        r9 = (c.e.a.b.e.c.u4) r9;	 Catch:{ all -> 0x0ef1 }
        r9 = (c.e.a.b.e.c.a1) r9;	 Catch:{ all -> 0x0ef1 }
        r12 = "_en";
        r9 = c.e.a.b.f.b.q9.R(r9, r12);	 Catch:{ all -> 0x0ef1 }
        r9 = (java.lang.String) r9;	 Catch:{ all -> 0x0ef1 }
        r12 = r2.get(r9);	 Catch:{ all -> 0x0ef1 }
        r12 = (c.e.a.b.f.b.l) r12;	 Catch:{ all -> 0x0ef1 }
        if (r12 != 0) goto L_0x0c16;
    L_0x0c05:
        r12 = r43.K();	 Catch:{ all -> 0x0ef1 }
        r13 = r8.a;	 Catch:{ all -> 0x0ef1 }
        r13 = r13.G1();	 Catch:{ all -> 0x0ef1 }
        r12 = r12.z(r13, r9);	 Catch:{ all -> 0x0ef1 }
        r2.put(r9, r12);	 Catch:{ all -> 0x0ef1 }
    L_0x0c16:
        r9 = r12.i;	 Catch:{ all -> 0x0ef1 }
        if (r9 != 0) goto L_0x0c4f;
    L_0x0c1a:
        r9 = r12.j;	 Catch:{ all -> 0x0ef1 }
        r13 = r9.longValue();	 Catch:{ all -> 0x0ef1 }
        r15 = 1;
        r9 = (r13 > r15 ? 1 : (r13 == r15 ? 0 : -1));
        if (r9 <= 0) goto L_0x0c2e;
    L_0x0c26:
        r43.N();	 Catch:{ all -> 0x0ef1 }
        r9 = r12.j;	 Catch:{ all -> 0x0ef1 }
        c.e.a.b.f.b.q9.E(r7, r10, r9);	 Catch:{ all -> 0x0ef1 }
    L_0x0c2e:
        r9 = r12.k;	 Catch:{ all -> 0x0ef1 }
        if (r9 == 0) goto L_0x0c44;
    L_0x0c32:
        r9 = r9.booleanValue();	 Catch:{ all -> 0x0ef1 }
        if (r9 == 0) goto L_0x0c44;
    L_0x0c38:
        r43.N();	 Catch:{ all -> 0x0ef1 }
        r9 = 1;
        r12 = java.lang.Long.valueOf(r9);	 Catch:{ all -> 0x0ef1 }
        c.e.a.b.f.b.q9.E(r7, r11, r12);	 Catch:{ all -> 0x0ef1 }
    L_0x0c44:
        r9 = r7.l();	 Catch:{ all -> 0x0ef1 }
        r9 = (c.e.a.b.e.c.u4) r9;	 Catch:{ all -> 0x0ef1 }
        r9 = (c.e.a.b.e.c.a1) r9;	 Catch:{ all -> 0x0ef1 }
        r3.add(r9);	 Catch:{ all -> 0x0ef1 }
    L_0x0c4f:
        r6.n(r5, r7);	 Catch:{ all -> 0x0ef1 }
        goto L_0x0dc8;
    L_0x0c54:
        r9 = r43.H();	 Catch:{ all -> 0x0ef1 }
        r12 = r8.a;	 Catch:{ all -> 0x0ef1 }
        r12 = r12.G1();	 Catch:{ all -> 0x0ef1 }
        r12 = r9.B(r12);	 Catch:{ all -> 0x0ef1 }
        r9 = r1.j;	 Catch:{ all -> 0x0ef1 }
        r9.t();	 Catch:{ all -> 0x0ef1 }
        r14 = r7.w();	 Catch:{ all -> 0x0ef1 }
        r14 = c.e.a.b.f.b.t9.u(r14, r12);	 Catch:{ all -> 0x0ef1 }
        r9 = r7.l();	 Catch:{ all -> 0x0ef1 }
        r9 = (c.e.a.b.e.c.u4) r9;	 Catch:{ all -> 0x0ef1 }
        r9 = (c.e.a.b.e.c.a1) r9;	 Catch:{ all -> 0x0ef1 }
        r16 = r11;
        r11 = "_dbg";
        r21 = r12;
        r17 = 1;
        r12 = java.lang.Long.valueOf(r17);	 Catch:{ all -> 0x0ef1 }
        r13 = android.text.TextUtils.isEmpty(r11);	 Catch:{ all -> 0x0ef1 }
        if (r13 != 0) goto L_0x0cdf;
    L_0x0c89:
        if (r12 != 0) goto L_0x0c8c;
    L_0x0c8b:
        goto L_0x0cdf;
    L_0x0c8c:
        r9 = r9.v();	 Catch:{ all -> 0x0ef1 }
        r9 = r9.iterator();	 Catch:{ all -> 0x0ef1 }
    L_0x0c94:
        r13 = r9.hasNext();	 Catch:{ all -> 0x0ef1 }
        if (r13 == 0) goto L_0x0cdf;
    L_0x0c9a:
        r13 = r9.next();	 Catch:{ all -> 0x0ef1 }
        r13 = (c.e.a.b.e.c.c1) r13;	 Catch:{ all -> 0x0ef1 }
        r17 = r9;
        r9 = r13.B();	 Catch:{ all -> 0x0ef1 }
        r9 = r11.equals(r9);	 Catch:{ all -> 0x0ef1 }
        if (r9 == 0) goto L_0x0cdc;
    L_0x0cac:
        r17 = r13.J();	 Catch:{ all -> 0x0ef1 }
        r9 = java.lang.Long.valueOf(r17);	 Catch:{ all -> 0x0ef1 }
        r9 = r12.equals(r9);	 Catch:{ all -> 0x0ef1 }
        if (r9 != 0) goto L_0x0cda;
    L_0x0cba:
        r9 = r12 instanceof java.lang.String;	 Catch:{ all -> 0x0ef1 }
        if (r9 == 0) goto L_0x0cc8;
    L_0x0cbe:
        r9 = r13.G();	 Catch:{ all -> 0x0ef1 }
        r9 = r12.equals(r9);	 Catch:{ all -> 0x0ef1 }
        if (r9 != 0) goto L_0x0cda;
    L_0x0cc8:
        r9 = r12 instanceof java.lang.Double;	 Catch:{ all -> 0x0ef1 }
        if (r9 == 0) goto L_0x0cdf;
    L_0x0ccc:
        r17 = r13.N();	 Catch:{ all -> 0x0ef1 }
        r9 = java.lang.Double.valueOf(r17);	 Catch:{ all -> 0x0ef1 }
        r9 = r12.equals(r9);	 Catch:{ all -> 0x0ef1 }
        if (r9 == 0) goto L_0x0cdf;
    L_0x0cda:
        r9 = 1;
        goto L_0x0ce0;
    L_0x0cdc:
        r9 = r17;
        goto L_0x0c94;
    L_0x0cdf:
        r9 = 0;
    L_0x0ce0:
        if (r9 != 0) goto L_0x0cf5;
    L_0x0ce2:
        r9 = r43.H();	 Catch:{ all -> 0x0ef1 }
        r11 = r8.a;	 Catch:{ all -> 0x0ef1 }
        r11 = r11.G1();	 Catch:{ all -> 0x0ef1 }
        r12 = r7.v();	 Catch:{ all -> 0x0ef1 }
        r9 = r9.z(r11, r12);	 Catch:{ all -> 0x0ef1 }
        goto L_0x0cf6;
    L_0x0cf5:
        r9 = 1;
    L_0x0cf6:
        if (r9 > 0) goto L_0x0d1f;
    L_0x0cf8:
        r10 = r1.j;	 Catch:{ all -> 0x0ef1 }
        r10 = r10.d();	 Catch:{ all -> 0x0ef1 }
        r10 = r10.A();	 Catch:{ all -> 0x0ef1 }
        r11 = "Sample rate must be positive. event, rate";
        r12 = r7.v();	 Catch:{ all -> 0x0ef1 }
        r9 = java.lang.Integer.valueOf(r9);	 Catch:{ all -> 0x0ef1 }
        r10.c(r11, r12, r9);	 Catch:{ all -> 0x0ef1 }
        r9 = r7.l();	 Catch:{ all -> 0x0ef1 }
        r9 = (c.e.a.b.e.c.u4) r9;	 Catch:{ all -> 0x0ef1 }
        r9 = (c.e.a.b.e.c.a1) r9;	 Catch:{ all -> 0x0ef1 }
        r3.add(r9);	 Catch:{ all -> 0x0ef1 }
        r6.n(r5, r7);	 Catch:{ all -> 0x0ef1 }
        goto L_0x0dc8;
    L_0x0d1f:
        r11 = r7.v();	 Catch:{ all -> 0x0ef1 }
        r11 = r2.get(r11);	 Catch:{ all -> 0x0ef1 }
        r11 = (c.e.a.b.f.b.l) r11;	 Catch:{ all -> 0x0ef1 }
        if (r11 != 0) goto L_0x0d7d;
    L_0x0d2b:
        r11 = r43.K();	 Catch:{ all -> 0x0eb8 }
        r12 = r8.a;	 Catch:{ all -> 0x0eb8 }
        r12 = r12.G1();	 Catch:{ all -> 0x0eb8 }
        r13 = r7.v();	 Catch:{ all -> 0x0eb8 }
        r11 = r11.z(r12, r13);	 Catch:{ all -> 0x0eb8 }
        if (r11 != 0) goto L_0x0d7d;
    L_0x0d3f:
        r11 = r1.j;	 Catch:{ all -> 0x0eb8 }
        r11 = r11.d();	 Catch:{ all -> 0x0eb8 }
        r11 = r11.A();	 Catch:{ all -> 0x0eb8 }
        r12 = "Event being bundled has no eventAggregate. appId, eventName";
        r13 = r8.a;	 Catch:{ all -> 0x0eb8 }
        r13 = r13.G1();	 Catch:{ all -> 0x0eb8 }
        r1 = r7.v();	 Catch:{ all -> 0x0eb8 }
        r11.c(r12, r13, r1);	 Catch:{ all -> 0x0eb8 }
        r11 = new c.e.a.b.f.b.l;	 Catch:{ all -> 0x0eb8 }
        r1 = r8.a;	 Catch:{ all -> 0x0eb8 }
        r27 = r1.G1();	 Catch:{ all -> 0x0eb8 }
        r28 = r7.v();	 Catch:{ all -> 0x0eb8 }
        r29 = 1;
        r31 = 1;
        r33 = 1;
        r35 = r7.w();	 Catch:{ all -> 0x0eb8 }
        r37 = 0;
        r39 = 0;
        r40 = 0;
        r41 = 0;
        r42 = 0;
        r26 = r11;
        r26.m1453init(r27, r28, r29, r31, r33, r35, r37, r39, r40, r41, r42);	 Catch:{ all -> 0x0eb8 }
    L_0x0d7d:
        r43.N();	 Catch:{ all -> 0x0eb8 }
        r1 = r7.l();	 Catch:{ all -> 0x0eb8 }
        r1 = (c.e.a.b.e.c.u4) r1;	 Catch:{ all -> 0x0eb8 }
        r1 = (c.e.a.b.e.c.a1) r1;	 Catch:{ all -> 0x0eb8 }
        r12 = "_eid";
        r1 = c.e.a.b.f.b.q9.R(r1, r12);	 Catch:{ all -> 0x0eb8 }
        r1 = (java.lang.Long) r1;	 Catch:{ all -> 0x0eb8 }
        if (r1 == 0) goto L_0x0d94;
    L_0x0d92:
        r12 = 1;
        goto L_0x0d95;
    L_0x0d94:
        r12 = 0;
    L_0x0d95:
        r12 = java.lang.Boolean.valueOf(r12);	 Catch:{ all -> 0x0eb8 }
        r13 = 1;
        if (r9 != r13) goto L_0x0dd3;
    L_0x0d9c:
        r1 = r7.l();	 Catch:{ all -> 0x0eb8 }
        r1 = (c.e.a.b.e.c.u4) r1;	 Catch:{ all -> 0x0eb8 }
        r1 = (c.e.a.b.e.c.a1) r1;	 Catch:{ all -> 0x0eb8 }
        r3.add(r1);	 Catch:{ all -> 0x0eb8 }
        r1 = r12.booleanValue();	 Catch:{ all -> 0x0eb8 }
        if (r1 == 0) goto L_0x0dc5;
    L_0x0dad:
        r1 = r11.i;	 Catch:{ all -> 0x0eb8 }
        if (r1 != 0) goto L_0x0db9;
    L_0x0db1:
        r1 = r11.j;	 Catch:{ all -> 0x0eb8 }
        if (r1 != 0) goto L_0x0db9;
    L_0x0db5:
        r1 = r11.k;	 Catch:{ all -> 0x0eb8 }
        if (r1 == 0) goto L_0x0dc5;
    L_0x0db9:
        r1 = 0;
        r9 = r11.c(r1, r1, r1);	 Catch:{ all -> 0x0eb8 }
        r1 = r7.v();	 Catch:{ all -> 0x0eb8 }
        r2.put(r1, r9);	 Catch:{ all -> 0x0eb8 }
    L_0x0dc5:
        r6.n(r5, r7);	 Catch:{ all -> 0x0eb8 }
    L_0x0dc8:
        r9 = r2;
        r17 = r4;
        r4 = r5;
        r13 = r8;
        r1 = 1;
        r8 = r43;
        goto L_0x0eaf;
    L_0x0dd3:
        r13 = r4.nextInt(r9);	 Catch:{ all -> 0x0eb8 }
        if (r13 != 0) goto L_0x0e18;
    L_0x0dd9:
        r43.N();	 Catch:{ all -> 0x0eb8 }
        r13 = r8;
        r8 = (long) r9;	 Catch:{ all -> 0x0eb8 }
        r1 = java.lang.Long.valueOf(r8);	 Catch:{ all -> 0x0eb8 }
        c.e.a.b.f.b.q9.E(r7, r10, r1);	 Catch:{ all -> 0x0eb8 }
        r1 = r7.l();	 Catch:{ all -> 0x0eb8 }
        r1 = (c.e.a.b.e.c.u4) r1;	 Catch:{ all -> 0x0eb8 }
        r1 = (c.e.a.b.e.c.a1) r1;	 Catch:{ all -> 0x0eb8 }
        r3.add(r1);	 Catch:{ all -> 0x0eb8 }
        r1 = r12.booleanValue();	 Catch:{ all -> 0x0eb8 }
        if (r1 == 0) goto L_0x0dff;
    L_0x0df6:
        r1 = java.lang.Long.valueOf(r8);	 Catch:{ all -> 0x0eb8 }
        r8 = 0;
        r11 = r11.c(r8, r1, r8);	 Catch:{ all -> 0x0eb8 }
    L_0x0dff:
        r1 = r7.v();	 Catch:{ all -> 0x0eb8 }
        r8 = r7.w();	 Catch:{ all -> 0x0eb8 }
        r8 = r11.b(r8, r14);	 Catch:{ all -> 0x0eb8 }
        r2.put(r1, r8);	 Catch:{ all -> 0x0eb8 }
        r8 = r43;
        r9 = r2;
        r17 = r4;
        r4 = r5;
        r1 = 1;
        goto L_0x0eac;
    L_0x0e18:
        r13 = r8;
        r8 = r11.h;	 Catch:{ all -> 0x0eb8 }
        if (r8 == 0) goto L_0x0e2e;
    L_0x0e1d:
        r17 = r8.longValue();	 Catch:{ all -> 0x0eb8 }
        r8 = r43;
        r23 = r1;
        r19 = r2;
        r1 = r17;
        r17 = r4;
        r18 = r5;
        goto L_0x0e47;
    L_0x0e2e:
        r8 = r43;
        r17 = r4;
        r4 = r8.j;	 Catch:{ all -> 0x1080 }
        r4.t();	 Catch:{ all -> 0x1080 }
        r18 = r5;
        r4 = r7.x();	 Catch:{ all -> 0x1080 }
        r23 = r1;
        r19 = r2;
        r1 = r21;
        r1 = c.e.a.b.f.b.t9.u(r4, r1);	 Catch:{ all -> 0x1080 }
    L_0x0e47:
        r4 = (r1 > r14 ? 1 : (r1 == r14 ? 0 : -1));
        if (r4 == 0) goto L_0x0e92;
    L_0x0e4b:
        r43.N();	 Catch:{ all -> 0x1080 }
        r1 = 1;
        r4 = java.lang.Long.valueOf(r1);	 Catch:{ all -> 0x1080 }
        r5 = r16;
        c.e.a.b.f.b.q9.E(r7, r5, r4);	 Catch:{ all -> 0x1080 }
        r43.N();	 Catch:{ all -> 0x1080 }
        r4 = (long) r9;	 Catch:{ all -> 0x1080 }
        r9 = java.lang.Long.valueOf(r4);	 Catch:{ all -> 0x1080 }
        c.e.a.b.f.b.q9.E(r7, r10, r9);	 Catch:{ all -> 0x1080 }
        r9 = r7.l();	 Catch:{ all -> 0x1080 }
        r9 = (c.e.a.b.e.c.u4) r9;	 Catch:{ all -> 0x1080 }
        r9 = (c.e.a.b.e.c.a1) r9;	 Catch:{ all -> 0x1080 }
        r3.add(r9);	 Catch:{ all -> 0x1080 }
        r9 = r12.booleanValue();	 Catch:{ all -> 0x1080 }
        if (r9 == 0) goto L_0x0e80;
    L_0x0e75:
        r4 = java.lang.Long.valueOf(r4);	 Catch:{ all -> 0x1080 }
        r5 = java.lang.Boolean.TRUE;	 Catch:{ all -> 0x1080 }
        r9 = 0;
        r11 = r11.c(r9, r4, r5);	 Catch:{ all -> 0x1080 }
    L_0x0e80:
        r4 = r7.v();	 Catch:{ all -> 0x1080 }
        r9 = r7.w();	 Catch:{ all -> 0x1080 }
        r5 = r11.b(r9, r14);	 Catch:{ all -> 0x1080 }
        r9 = r19;
        r9.put(r4, r5);	 Catch:{ all -> 0x1080 }
        goto L_0x0eaa;
    L_0x0e92:
        r9 = r19;
        r1 = 1;
        r4 = r12.booleanValue();	 Catch:{ all -> 0x1080 }
        if (r4 == 0) goto L_0x0eaa;
    L_0x0e9c:
        r4 = r7.v();	 Catch:{ all -> 0x1080 }
        r5 = r23;
        r10 = 0;
        r5 = r11.c(r5, r10, r10);	 Catch:{ all -> 0x1080 }
        r9.put(r4, r5);	 Catch:{ all -> 0x1080 }
    L_0x0eaa:
        r4 = r18;
    L_0x0eac:
        r6.n(r4, r7);	 Catch:{ all -> 0x1080 }
    L_0x0eaf:
        r5 = r4 + 1;
        r1 = r8;
        r2 = r9;
        r8 = r13;
        r4 = r17;
        goto L_0x0bca;
    L_0x0eb8:
        r0 = move-exception;
        r8 = r43;
        goto L_0x0ef3;
    L_0x0ebc:
        r9 = r2;
        r13 = r8;
        r8 = r1;
        r1 = r3.size();	 Catch:{ all -> 0x1080 }
        r2 = r6.x();	 Catch:{ all -> 0x1080 }
        if (r1 >= r2) goto L_0x0ecf;
    L_0x0ec9:
        r6.B();	 Catch:{ all -> 0x1080 }
        r6.t(r3);	 Catch:{ all -> 0x1080 }
    L_0x0ecf:
        r1 = r9.entrySet();	 Catch:{ all -> 0x1080 }
        r1 = r1.iterator();	 Catch:{ all -> 0x1080 }
    L_0x0ed7:
        r2 = r1.hasNext();	 Catch:{ all -> 0x1080 }
        if (r2 == 0) goto L_0x0ef8;
    L_0x0edd:
        r2 = r1.next();	 Catch:{ all -> 0x1080 }
        r2 = (java.util.Map.Entry) r2;	 Catch:{ all -> 0x1080 }
        r3 = r43.K();	 Catch:{ all -> 0x1080 }
        r2 = r2.getValue();	 Catch:{ all -> 0x1080 }
        r2 = (c.e.a.b.f.b.l) r2;	 Catch:{ all -> 0x1080 }
        r3.H(r2);	 Catch:{ all -> 0x1080 }
        goto L_0x0ed7;
    L_0x0ef1:
        r0 = move-exception;
        r8 = r1;
    L_0x0ef3:
        r1 = r0;
        goto L_0x109e;
    L_0x0ef6:
        r13 = r8;
        r8 = r1;
    L_0x0ef8:
        r1 = r13;
        r2 = r1.a;	 Catch:{ all -> 0x1080 }
        r2 = r2.G1();	 Catch:{ all -> 0x1080 }
        r3 = r43.K();	 Catch:{ all -> 0x1080 }
        r3 = r3.T(r2);	 Catch:{ all -> 0x1080 }
        if (r3 != 0) goto L_0x0f23;
    L_0x0f09:
        r3 = r8.j;	 Catch:{ all -> 0x1080 }
        r3 = r3.d();	 Catch:{ all -> 0x1080 }
        r3 = r3.z();	 Catch:{ all -> 0x1080 }
        r4 = "Bundling raw events w/o app info. appId";
        r5 = r1.a;	 Catch:{ all -> 0x1080 }
        r5 = r5.G1();	 Catch:{ all -> 0x1080 }
        r5 = c.e.a.b.f.b.q3.s(r5);	 Catch:{ all -> 0x1080 }
        r3.b(r4, r5);	 Catch:{ all -> 0x1080 }
        goto L_0x0f7e;
    L_0x0f23:
        r4 = r6.x();	 Catch:{ all -> 0x1080 }
        if (r4 <= 0) goto L_0x0f7e;
    L_0x0f29:
        r4 = r3.L();	 Catch:{ all -> 0x1080 }
        r9 = 0;
        r7 = (r4 > r9 ? 1 : (r4 == r9 ? 0 : -1));
        if (r7 == 0) goto L_0x0f37;
    L_0x0f33:
        r6.N(r4);	 Catch:{ all -> 0x1080 }
        goto L_0x0f3a;
    L_0x0f37:
        r6.a0();	 Catch:{ all -> 0x1080 }
    L_0x0f3a:
        r9 = r3.K();	 Catch:{ all -> 0x1080 }
        r11 = 0;
        r7 = (r9 > r11 ? 1 : (r9 == r11 ? 0 : -1));
        if (r7 != 0) goto L_0x0f45;
    L_0x0f44:
        goto L_0x0f46;
    L_0x0f45:
        r4 = r9;
    L_0x0f46:
        r7 = (r4 > r11 ? 1 : (r4 == r11 ? 0 : -1));
        if (r7 == 0) goto L_0x0f4e;
    L_0x0f4a:
        r6.G(r4);	 Catch:{ all -> 0x1080 }
        goto L_0x0f51;
    L_0x0f4e:
        r6.W();	 Catch:{ all -> 0x1080 }
    L_0x0f51:
        r3.X();	 Catch:{ all -> 0x1080 }
        r4 = r3.U();	 Catch:{ all -> 0x1080 }
        r5 = (int) r4;	 Catch:{ all -> 0x1080 }
        r6.U(r5);	 Catch:{ all -> 0x1080 }
        r4 = r6.P();	 Catch:{ all -> 0x1080 }
        r3.a(r4);	 Catch:{ all -> 0x1080 }
        r4 = r6.T();	 Catch:{ all -> 0x1080 }
        r3.l(r4);	 Catch:{ all -> 0x1080 }
        r4 = r3.f();	 Catch:{ all -> 0x1080 }
        if (r4 == 0) goto L_0x0f74;
    L_0x0f70:
        r6.e0(r4);	 Catch:{ all -> 0x1080 }
        goto L_0x0f77;
    L_0x0f74:
        r6.k0();	 Catch:{ all -> 0x1080 }
    L_0x0f77:
        r4 = r43.K();	 Catch:{ all -> 0x1080 }
        r4.I(r3);	 Catch:{ all -> 0x1080 }
    L_0x0f7e:
        r3 = r6.x();	 Catch:{ all -> 0x1080 }
        if (r3 <= 0) goto L_0x0fdf;
    L_0x0f84:
        r3 = r43.H();	 Catch:{ all -> 0x1080 }
        r4 = r1.a;	 Catch:{ all -> 0x1080 }
        r4 = r4.G1();	 Catch:{ all -> 0x1080 }
        r3 = r3.s(r4);	 Catch:{ all -> 0x1080 }
        if (r3 == 0) goto L_0x0fa3;
    L_0x0f94:
        r4 = r3.x();	 Catch:{ all -> 0x1080 }
        if (r4 != 0) goto L_0x0f9b;
    L_0x0f9a:
        goto L_0x0fa3;
    L_0x0f9b:
        r3 = r3.y();	 Catch:{ all -> 0x1080 }
        r6.b0(r3);	 Catch:{ all -> 0x1080 }
        goto L_0x0fce;
    L_0x0fa3:
        r3 = r1.a;	 Catch:{ all -> 0x1080 }
        r3 = r3.S();	 Catch:{ all -> 0x1080 }
        r3 = android.text.TextUtils.isEmpty(r3);	 Catch:{ all -> 0x1080 }
        if (r3 == 0) goto L_0x0fb5;
    L_0x0faf:
        r3 = -1;
        r6.b0(r3);	 Catch:{ all -> 0x1080 }
        goto L_0x0fce;
    L_0x0fb5:
        r3 = r8.j;	 Catch:{ all -> 0x1080 }
        r3 = r3.d();	 Catch:{ all -> 0x1080 }
        r3 = r3.A();	 Catch:{ all -> 0x1080 }
        r4 = "Did not find measurement config or missing version info. appId";
        r5 = r1.a;	 Catch:{ all -> 0x1080 }
        r5 = r5.G1();	 Catch:{ all -> 0x1080 }
        r5 = c.e.a.b.f.b.q3.s(r5);	 Catch:{ all -> 0x1080 }
        r3.b(r4, r5);	 Catch:{ all -> 0x1080 }
    L_0x0fce:
        r3 = r43.K();	 Catch:{ all -> 0x1080 }
        r4 = r6.l();	 Catch:{ all -> 0x1080 }
        r4 = (c.e.a.b.e.c.u4) r4;	 Catch:{ all -> 0x1080 }
        r4 = (c.e.a.b.e.c.e1) r4;	 Catch:{ all -> 0x1080 }
        r10 = r20;
        r3.K(r4, r10);	 Catch:{ all -> 0x1080 }
    L_0x0fdf:
        r3 = r43.K();	 Catch:{ all -> 0x1080 }
        r1 = r1.b;	 Catch:{ all -> 0x1080 }
        b.i.b.f.R(r1);	 Catch:{ all -> 0x1080 }
        r3.g();	 Catch:{ all -> 0x1080 }
        r3.n();	 Catch:{ all -> 0x1080 }
        r4 = new java.lang.StringBuilder;	 Catch:{ all -> 0x1080 }
        r5 = "rowid in (";
        r4.<init>(r5);	 Catch:{ all -> 0x1080 }
        r5 = 0;
    L_0x0ff6:
        r6 = r1.size();	 Catch:{ all -> 0x1080 }
        if (r5 >= r6) goto L_0x1013;
    L_0x0ffc:
        if (r5 == 0) goto L_0x1003;
    L_0x0ffe:
        r6 = ",";
        r4.append(r6);	 Catch:{ all -> 0x1080 }
    L_0x1003:
        r6 = r1.get(r5);	 Catch:{ all -> 0x1080 }
        r6 = (java.lang.Long) r6;	 Catch:{ all -> 0x1080 }
        r6 = r6.longValue();	 Catch:{ all -> 0x1080 }
        r4.append(r6);	 Catch:{ all -> 0x1080 }
        r5 = r5 + 1;
        goto L_0x0ff6;
    L_0x1013:
        r5 = ")";
        r4.append(r5);	 Catch:{ all -> 0x1080 }
        r5 = r3.t();	 Catch:{ all -> 0x1080 }
        r6 = "raw_events";
        r4 = r4.toString();	 Catch:{ all -> 0x1080 }
        r7 = 0;
        r4 = r5.delete(r6, r4, r7);	 Catch:{ all -> 0x1080 }
        r5 = r1.size();	 Catch:{ all -> 0x1080 }
        if (r4 == r5) goto L_0x1046;
    L_0x102d:
        r3 = r3.d();	 Catch:{ all -> 0x1080 }
        r3 = r3.z();	 Catch:{ all -> 0x1080 }
        r5 = "Deleted fewer rows from raw events table than expected";
        r4 = java.lang.Integer.valueOf(r4);	 Catch:{ all -> 0x1080 }
        r1 = r1.size();	 Catch:{ all -> 0x1080 }
        r1 = java.lang.Integer.valueOf(r1);	 Catch:{ all -> 0x1080 }
        r3.c(r5, r4, r1);	 Catch:{ all -> 0x1080 }
    L_0x1046:
        r1 = r43.K();	 Catch:{ all -> 0x1080 }
        r3 = r1.t();	 Catch:{ all -> 0x1080 }
        r4 = "delete from raw_events_metadata where app_id=? and metadata_fingerprint not in (select distinct metadata_fingerprint from raw_events where app_id=?)";
        r5 = 2;
        r5 = new java.lang.String[r5];	 Catch:{ SQLiteException -> 0x105d }
        r6 = 0;
        r5[r6] = r2;	 Catch:{ SQLiteException -> 0x105d }
        r6 = 1;
        r5[r6] = r2;	 Catch:{ SQLiteException -> 0x105d }
        r3.execSQL(r4, r5);	 Catch:{ SQLiteException -> 0x105d }
        goto L_0x1070;
    L_0x105d:
        r0 = move-exception;
        r3 = r0;
        r1 = r1.d();	 Catch:{ all -> 0x1080 }
        r1 = r1.z();	 Catch:{ all -> 0x1080 }
        r4 = "Failed to remove unused event metadata. appId";
        r2 = c.e.a.b.f.b.q3.s(r2);	 Catch:{ all -> 0x1080 }
        r1.c(r4, r2, r3);	 Catch:{ all -> 0x1080 }
    L_0x1070:
        r1 = r43.K();	 Catch:{ all -> 0x1080 }
        r1.s();	 Catch:{ all -> 0x1080 }
        r1 = r43.K();
        r1.e0();
        r1 = 1;
        return r1;
    L_0x1080:
        r0 = move-exception;
        goto L_0x0ef3;
    L_0x1083:
        r8 = r1;
        r1 = r43.K();	 Catch:{ all -> 0x1080 }
        r1.s();	 Catch:{ all -> 0x1080 }
        r1 = r43.K();
        r1.e0();
        r1 = 0;
        return r1;
    L_0x1094:
        r0 = move-exception;
        r8 = r1;
        r2 = r0;
    L_0x1097:
        r9 = r7;
    L_0x1098:
        if (r9 == 0) goto L_0x109d;
    L_0x109a:
        r9.close();	 Catch:{ all -> 0x1080 }
    L_0x109d:
        throw r2;	 Catch:{ all -> 0x1080 }
    L_0x109e:
        r2 = r43.K();
        r2.e0();
        throw r1;
        */
        throw new UnsupportedOperationException("Method not decompiled: c.e.a.b.f.b.k9.t(long):boolean");
    }

    public final boolean u(c.e.a.b.e.c.a1.a aVar, c.e.a.b.e.c.a1.a aVar2) {
        f.J("_e".equals(aVar.v()));
        N();
        c1 w = q9.w((a1) ((u4) aVar.l()), "_sc");
        String str = null;
        Object obj;
        if (w == null) {
            obj = null;
        } else {
            obj = w.G();
        }
        N();
        c1 w2 = q9.w((a1) ((u4) aVar2.l()), "_pc");
        if (w2 != null) {
            str = w2.G();
        }
        if (str == null || !str.equals(obj)) {
            return false;
        }
        A(aVar, aVar2);
        return true;
    }

    public final boolean v() {
        U();
        P();
        return (((K().S("select count(1) > 0 from raw_events", null) > 0 ? 1 : (K().S("select count(1) > 0 from raw_events", null) == 0 ? 0 : -1)) != 0 ? 1 : null) == null && TextUtils.isEmpty(K().u())) ? false : true;
    }

    /* JADX WARNING: Removed duplicated region for block: B:101:0x0399  */
    /* JADX WARNING: Removed duplicated region for block: B:56:0x01c2  */
    /* JADX WARNING: Removed duplicated region for block: B:54:0x01a4  */
    /* JADX WARNING: Removed duplicated region for block: B:30:0x00e4  */
    /* JADX WARNING: Removed duplicated region for block: B:24:0x00a8  */
    /* JADX WARNING: Removed duplicated region for block: B:33:0x012c  */
    /* JADX WARNING: Removed duplicated region for block: B:54:0x01a4  */
    /* JADX WARNING: Removed duplicated region for block: B:56:0x01c2  */
    public final void w() {
        /*
        r19 = this;
        r1 = r19;
        r19.U();
        r19.P();
        r2 = r1.m;
        r4 = 0;
        r0 = (r2 > r4 ? 1 : (r2 == r4 ? 0 : -1));
        if (r0 <= 0) goto L_0x004e;
    L_0x0010:
        r0 = r1.j;
        r0 = r0.n;
        r0 = (c.e.a.b.b.j.c) r0;
        java.util.Objects.requireNonNull(r0);
        r2 = android.os.SystemClock.elapsedRealtime();
        r6 = 3600000; // 0x36ee80 float:5.044674E-39 double:1.7786363E-317;
        r8 = r1.m;
        r2 = r2 - r8;
        r2 = java.lang.Math.abs(r2);
        r6 = r6 - r2;
        r0 = (r6 > r4 ? 1 : (r6 == r4 ? 0 : -1));
        if (r0 <= 0) goto L_0x004c;
    L_0x002c:
        r0 = r1.j;
        r0 = r0.d();
        r0 = r0.n;
        r2 = java.lang.Long.valueOf(r6);
        r3 = "Upload has been suspended. Will update scheduling later in approximately ms";
        r0.b(r3, r2);
        r0 = r19.S();
        r0.a();
        r0 = r19.T();
        r0.s();
        return;
    L_0x004c:
        r1.m = r4;
    L_0x004e:
        r0 = r1.j;
        r0 = r0.m();
        if (r0 == 0) goto L_0x03e1;
    L_0x0056:
        r0 = r19.v();
        if (r0 != 0) goto L_0x005e;
    L_0x005c:
        goto L_0x03e1;
    L_0x005e:
        r0 = r1.j;
        r0 = r0.n;
        r0 = (c.e.a.b.b.j.c) r0;
        java.util.Objects.requireNonNull(r0);
        r2 = java.lang.System.currentTimeMillis();
        r0 = c.e.a.b.f.b.p.A;
        r6 = 0;
        r0 = r0.a(r6);
        r0 = (java.lang.Long) r0;
        r7 = r0.longValue();
        r7 = java.lang.Math.max(r4, r7);
        r0 = r19.K();
        r9 = "select count(1) > 0 from raw_events where realtime = 1";
        r9 = r0.S(r9, r6);
        r0 = (r9 > r4 ? 1 : (r9 == r4 ? 0 : -1));
        if (r0 == 0) goto L_0x008c;
    L_0x008a:
        r0 = 1;
        goto L_0x008d;
    L_0x008c:
        r0 = 0;
    L_0x008d:
        if (r0 != 0) goto L_0x00a5;
    L_0x008f:
        r0 = r19.K();
        r9 = "select count(1) > 0 from queue where has_realtime = 1";
        r9 = r0.S(r9, r6);
        r0 = (r9 > r4 ? 1 : (r9 == r4 ? 0 : -1));
        if (r0 == 0) goto L_0x009f;
    L_0x009d:
        r0 = 1;
        goto L_0x00a0;
    L_0x009f:
        r0 = 0;
    L_0x00a0:
        if (r0 == 0) goto L_0x00a3;
    L_0x00a2:
        goto L_0x00a5;
    L_0x00a3:
        r0 = 0;
        goto L_0x00a6;
    L_0x00a5:
        r0 = 1;
    L_0x00a6:
        if (r0 == 0) goto L_0x00e4;
    L_0x00a8:
        r9 = r1.j;
        r9 = r9.g;
        r10 = "debug.firebase.analytics.app";
        r13 = "";
        r9 = r9.c(r10, r13);
        r10 = android.text.TextUtils.isEmpty(r9);
        if (r10 != 0) goto L_0x00d3;
    L_0x00ba:
        r10 = ".none.";
        r9 = r10.equals(r9);
        if (r9 != 0) goto L_0x00d3;
    L_0x00c2:
        r9 = c.e.a.b.f.b.p.v;
        r9 = r9.a(r6);
        r9 = (java.lang.Long) r9;
        r9 = r9.longValue();
        r9 = java.lang.Math.max(r4, r9);
        goto L_0x00f4;
    L_0x00d3:
        r9 = c.e.a.b.f.b.p.u;
        r9 = r9.a(r6);
        r9 = (java.lang.Long) r9;
        r9 = r9.longValue();
        r9 = java.lang.Math.max(r4, r9);
        goto L_0x00f4;
    L_0x00e4:
        r9 = c.e.a.b.f.b.p.t;
        r9 = r9.a(r6);
        r9 = (java.lang.Long) r9;
        r9 = r9.longValue();
        r9 = java.lang.Math.max(r4, r9);
    L_0x00f4:
        r13 = r1.j;
        r13 = r13.o();
        r13 = r13.e;
        r13 = r13.a();
        r15 = r1.j;
        r15 = r15.o();
        r15 = r15.f;
        r15 = r15.a();
        r11 = r19.K();
        r12 = "select max(bundle_end_timestamp) from queue";
        r11 = r11.w(r12, r6, r4);
        r1 = r19.K();
        r17 = r9;
        r9 = "select max(timestamp) from raw_events";
        r9 = r1.w(r9, r6, r4);
        r9 = java.lang.Math.max(r11, r9);
        r1 = (r9 > r4 ? 1 : (r9 == r4 ? 0 : -1));
        if (r1 != 0) goto L_0x012c;
    L_0x012a:
        goto L_0x019f;
    L_0x012c:
        r9 = r9 - r2;
        r9 = java.lang.Math.abs(r9);
        r9 = r2 - r9;
        r13 = r13 - r2;
        r11 = java.lang.Math.abs(r13);
        r11 = r2 - r11;
        r15 = r15 - r2;
        r13 = java.lang.Math.abs(r15);
        r2 = r2 - r13;
        r11 = java.lang.Math.max(r11, r2);
        r7 = r7 + r9;
        if (r0 == 0) goto L_0x0151;
    L_0x0147:
        r0 = (r11 > r4 ? 1 : (r11 == r4 ? 0 : -1));
        if (r0 <= 0) goto L_0x0151;
    L_0x014b:
        r0 = java.lang.Math.min(r9, r11);
        r7 = r0 + r17;
    L_0x0151:
        r0 = r19.N();
        r13 = r17;
        r0 = r0.N(r11, r13);
        if (r0 != 0) goto L_0x015f;
    L_0x015d:
        r7 = r11 + r13;
    L_0x015f:
        r0 = (r2 > r4 ? 1 : (r2 == r4 ? 0 : -1));
        if (r0 == 0) goto L_0x01a0;
    L_0x0163:
        r0 = (r2 > r9 ? 1 : (r2 == r9 ? 0 : -1));
        if (r0 < 0) goto L_0x01a0;
    L_0x0167:
        r0 = 0;
    L_0x0168:
        r1 = 20;
        r9 = c.e.a.b.f.b.p.C;
        r9 = r9.a(r6);
        r9 = (java.lang.Integer) r9;
        r9 = r9.intValue();
        r10 = 0;
        r9 = java.lang.Math.max(r10, r9);
        r1 = java.lang.Math.min(r1, r9);
        if (r0 >= r1) goto L_0x019f;
    L_0x0181:
        r9 = 1;
        r9 = r9 << r0;
        r1 = c.e.a.b.f.b.p.B;
        r1 = r1.a(r6);
        r1 = (java.lang.Long) r1;
        r11 = r1.longValue();
        r11 = java.lang.Math.max(r4, r11);
        r11 = r11 * r9;
        r7 = r7 + r11;
        r1 = (r7 > r2 ? 1 : (r7 == r2 ? 0 : -1));
        if (r1 <= 0) goto L_0x019c;
    L_0x019b:
        goto L_0x01a0;
    L_0x019c:
        r0 = r0 + 1;
        goto L_0x0168;
    L_0x019f:
        r7 = r4;
    L_0x01a0:
        r0 = (r7 > r4 ? 1 : (r7 == r4 ? 0 : -1));
        if (r0 != 0) goto L_0x01c2;
    L_0x01a4:
        r1 = r19;
        r0 = r1.j;
        r0 = r0.d();
        r0 = r0.n;
        r2 = "Next upload time is 0";
        r0.a(r2);
        r0 = r19.S();
        r0.a();
        r0 = r19.T();
        r0.s();
        return;
    L_0x01c2:
        r1 = r19;
        r0 = r19.J();
        r0 = r0.u();
        if (r0 != 0) goto L_0x022c;
    L_0x01ce:
        r0 = r1.j;
        r0 = r0.d();
        r0 = r0.n;
        r2 = "No network";
        r0.a(r2);
        r0 = r19.S();
        r2 = r0.a;
        r2.P();
        r2 = r0.a;
        r2 = r2.a();
        r2.g();
        r2 = r0.b;
        if (r2 == 0) goto L_0x01f2;
    L_0x01f1:
        goto L_0x0224;
    L_0x01f2:
        r2 = r0.a;
        r2 = r2.j;
        r2 = r2.a;
        r3 = new android.content.IntentFilter;
        r4 = "android.net.conn.CONNECTIVITY_CHANGE";
        r3.<init>(r4);
        r2.registerReceiver(r0, r3);
        r2 = r0.a;
        r2 = r2.J();
        r2 = r2.u();
        r0.c = r2;
        r2 = r0.a;
        r2 = r2.d();
        r2 = r2.n;
        r3 = r0.c;
        r3 = java.lang.Boolean.valueOf(r3);
        r4 = "Registering connectivity change receiver. Network connected";
        r2.b(r4, r3);
        r2 = 1;
        r0.b = r2;
    L_0x0224:
        r0 = r19.T();
        r0.s();
        return;
    L_0x022c:
        r0 = r1.j;
        r0 = r0.o();
        r0 = r0.g;
        r2 = r0.a();
        r0 = c.e.a.b.f.b.p.r;
        r0 = r0.a(r6);
        r0 = (java.lang.Long) r0;
        r9 = r0.longValue();
        r9 = java.lang.Math.max(r4, r9);
        r0 = r19.N();
        r0 = r0.N(r2, r9);
        if (r0 != 0) goto L_0x0257;
    L_0x0252:
        r2 = r2 + r9;
        r7 = java.lang.Math.max(r7, r2);
    L_0x0257:
        r0 = r19.S();
        r0.a();
        r0 = r1.j;
        r0 = r0.n;
        r0 = (c.e.a.b.b.j.c) r0;
        java.util.Objects.requireNonNull(r0);
        r2 = java.lang.System.currentTimeMillis();
        r7 = r7 - r2;
        r0 = (r7 > r4 ? 1 : (r7 == r4 ? 0 : -1));
        if (r0 > 0) goto L_0x0298;
    L_0x0270:
        r0 = c.e.a.b.f.b.p.w;
        r0 = r0.a(r6);
        r0 = (java.lang.Long) r0;
        r2 = r0.longValue();
        r7 = java.lang.Math.max(r4, r2);
        r0 = r1.j;
        r0 = r0.o();
        r0 = r0.e;
        r2 = r1.j;
        r2 = r2.n;
        r2 = (c.e.a.b.b.j.c) r2;
        java.util.Objects.requireNonNull(r2);
        r2 = java.lang.System.currentTimeMillis();
        r0.b(r2);
    L_0x0298:
        r0 = r1.j;
        r0 = r0.d();
        r0 = r0.n;
        r2 = java.lang.Long.valueOf(r7);
        r3 = "Upload scheduled in approximately ms";
        r0.b(r3, r2);
        r0 = r19.T();
        r0.n();
        r2 = r0.a;
        r2 = r2.a;
        r3 = c.e.a.b.f.b.n4.a(r2);
        if (r3 != 0) goto L_0x02c5;
    L_0x02ba:
        r3 = r0.d();
        r3 = r3.m;
        r9 = "Receiver not registered/enabled";
        r3.a(r9);
    L_0x02c5:
        r2 = c.e.a.b.f.b.t9.U(r2);
        if (r2 != 0) goto L_0x02d6;
    L_0x02cb:
        r2 = r0.d();
        r2 = r2.m;
        r3 = "Service not registered/enabled";
        r2.a(r3);
    L_0x02d6:
        r0.s();
        r2 = r0.d();
        r2 = r2.n;
        r3 = java.lang.Long.valueOf(r7);
        r9 = "Scheduling upload, millis";
        r2.b(r9, r3);
        r2 = r0.a;
        r2 = r2.n;
        r2 = (c.e.a.b.b.j.c) r2;
        java.util.Objects.requireNonNull(r2);
        r2 = android.os.SystemClock.elapsedRealtime();
        r11 = r2 + r7;
        r2 = c.e.a.b.f.b.p.x;
        r2 = r2.a(r6);
        r2 = (java.lang.Long) r2;
        r2 = r2.longValue();
        r2 = java.lang.Math.max(r4, r2);
        r9 = (r7 > r2 ? 1 : (r7 == r2 ? 0 : -1));
        if (r9 >= 0) goto L_0x031d;
    L_0x030b:
        r2 = r0.e;
        r2 = r2.c;
        r9 = (r2 > r4 ? 1 : (r2 == r4 ? 0 : -1));
        if (r9 == 0) goto L_0x0315;
    L_0x0313:
        r2 = 1;
        goto L_0x0316;
    L_0x0315:
        r2 = 0;
    L_0x0316:
        if (r2 != 0) goto L_0x031d;
    L_0x0318:
        r2 = r0.e;
        r2.b(r7);
    L_0x031d:
        r2 = android.os.Build.VERSION.SDK_INT;
        r3 = 24;
        if (r2 < r3) goto L_0x03c6;
    L_0x0323:
        r2 = r0.a;
        r2 = r2.a;
        r3 = new android.content.ComponentName;
        r4 = "com.google.android.gms.measurement.AppMeasurementJobService";
        r3.<init>(r2, r4);
        r0 = r0.t();
        r4 = new android.os.PersistableBundle;
        r4.<init>();
        r5 = "action";
        r9 = "com.google.android.gms.measurement.UPLOAD";
        r4.putString(r5, r9);
        r5 = new android.app.job.JobInfo$Builder;
        r5.<init>(r0, r3);
        r0 = r5.setMinimumLatency(r7);
        r3 = 1;
        r7 = r7 << r3;
        r0 = r0.setOverrideDeadline(r7);
        r0 = r0.setExtras(r4);
        r3 = r0.build();
        r4 = "com.google.android.gms";
        r5 = "UploadAlarm";
        r0 = c.e.a.b.e.c.a4.a;
        r0 = "jobscheduler";
        r0 = r2.getSystemService(r0);
        r7 = r0;
        r7 = (android.app.job.JobScheduler) r7;
        r0 = c.e.a.b.e.c.a4.a;
        if (r0 == 0) goto L_0x03c2;
    L_0x0368:
        r0 = "android.permission.UPDATE_DEVICE_STATS";
        r0 = r2.checkSelfPermission(r0);
        if (r0 == 0) goto L_0x0371;
    L_0x0370:
        goto L_0x03c2;
    L_0x0371:
        r0 = c.e.a.b.e.c.a4.b;
        if (r0 == 0) goto L_0x0394;
    L_0x0375:
        r2 = 0;
        r8 = new java.lang.Object[r2];	 Catch:{ IllegalAccessException -> 0x0385, IllegalAccessException | InvocationTargetException -> 0x0383 }
        r0 = r0.invoke(r6, r8);	 Catch:{ IllegalAccessException -> 0x0385, IllegalAccessException | InvocationTargetException -> 0x0383 }
        r0 = (java.lang.Integer) r0;	 Catch:{ IllegalAccessException -> 0x0385, IllegalAccessException | InvocationTargetException -> 0x0383 }
        r10 = r0.intValue();	 Catch:{ IllegalAccessException -> 0x0385, IllegalAccessException | InvocationTargetException -> 0x0383 }
        goto L_0x0395;
    L_0x0383:
        r0 = move-exception;
        goto L_0x0386;
    L_0x0385:
        r0 = move-exception;
    L_0x0386:
        r2 = 6;
        r6 = "JobSchedulerCompat";
        r2 = android.util.Log.isLoggable(r6, r2);
        if (r2 == 0) goto L_0x0394;
    L_0x038f:
        r2 = "myUserId invocation illegal";
        android.util.Log.e(r6, r2, r0);
    L_0x0394:
        r10 = 0;
    L_0x0395:
        r0 = c.e.a.b.e.c.a4.a;
        if (r0 == 0) goto L_0x03be;
    L_0x0399:
        r2 = 4;
        r2 = new java.lang.Object[r2];	 Catch:{ IllegalAccessException -> 0x03b8, IllegalAccessException | InvocationTargetException -> 0x03b6 }
        r6 = 0;
        r2[r6] = r3;	 Catch:{ IllegalAccessException -> 0x03b8, IllegalAccessException | InvocationTargetException -> 0x03b6 }
        r6 = 1;
        r2[r6] = r4;	 Catch:{ IllegalAccessException -> 0x03b8, IllegalAccessException | InvocationTargetException -> 0x03b6 }
        r4 = 2;
        r6 = java.lang.Integer.valueOf(r10);	 Catch:{ IllegalAccessException -> 0x03b8, IllegalAccessException | InvocationTargetException -> 0x03b6 }
        r2[r4] = r6;	 Catch:{ IllegalAccessException -> 0x03b8, IllegalAccessException | InvocationTargetException -> 0x03b6 }
        r4 = 3;
        r2[r4] = r5;	 Catch:{ IllegalAccessException -> 0x03b8, IllegalAccessException | InvocationTargetException -> 0x03b6 }
        r0 = r0.invoke(r7, r2);	 Catch:{ IllegalAccessException -> 0x03b8, IllegalAccessException | InvocationTargetException -> 0x03b6 }
        r0 = (java.lang.Integer) r0;	 Catch:{ IllegalAccessException -> 0x03b8, IllegalAccessException | InvocationTargetException -> 0x03b6 }
        r0.intValue();	 Catch:{ IllegalAccessException -> 0x03b8, IllegalAccessException | InvocationTargetException -> 0x03b6 }
        goto L_0x03e0;
    L_0x03b6:
        r0 = move-exception;
        goto L_0x03b9;
    L_0x03b8:
        r0 = move-exception;
    L_0x03b9:
        r2 = "error calling scheduleAsPackage";
        android.util.Log.e(r5, r2, r0);
    L_0x03be:
        r7.schedule(r3);
        goto L_0x03e0;
    L_0x03c2:
        r7.schedule(r3);
        goto L_0x03e0;
    L_0x03c6:
        r9 = r0.d;
        r10 = 2;
        r2 = c.e.a.b.f.b.p.s;
        r2 = r2.a(r6);
        r2 = (java.lang.Long) r2;
        r2 = r2.longValue();
        r13 = java.lang.Math.max(r2, r7);
        r15 = r0.u();
        r9.setInexactRepeating(r10, r11, r13, r15);
    L_0x03e0:
        return;
    L_0x03e1:
        r0 = r1.j;
        r0 = r0.d();
        r0 = r0.n;
        r2 = "Nothing to upload or uploading impossible";
        r0.a(r2);
        r0 = r19.S();
        r0.a();
        r0 = r19.T();
        r0.s();
        return;
        */
        throw new UnsupportedOperationException("Method not decompiled: c.e.a.b.f.b.k9.w():void");
    }

    public final void x() {
        U();
        if (this.q || this.r || this.s) {
            this.j.d().n.d("Not stopping services. fetch, network, upload", Boolean.valueOf(this.q), Boolean.valueOf(this.r), Boolean.valueOf(this.s));
            return;
        }
        this.j.d().n.a("Stopping uploading service(s)");
        List<Runnable> list = this.n;
        if (list != null) {
            for (Runnable run : list) {
                run.run();
            }
            this.n.clear();
        }
    }

    public final zzn y(String str) {
        String str2 = str;
        a4 T = K().T(str2);
        if (T == null || TextUtils.isEmpty(T.M())) {
            this.j.d().m.b("No app data available; dropping", str2);
            return null;
        }
        Boolean z = z(T);
        if (z == null || z.booleanValue()) {
            String v = T.v();
            String M = T.M();
            long N = T.N();
            String O = T.O();
            long P = T.P();
            long Q = T.Q();
            boolean T2 = T.T();
            String H = T.H();
            long g = T.g();
            boolean h = T.h();
            boolean i = T.i();
            String y = T.y();
            Boolean j = T.j();
            long S = T.S();
            List k = T.k();
            String B = (fa.a() && this.j.g.u(str2, p.j0)) ? T.B() : null;
            String d = (v8.a() && this.j.g.o(p.J0)) ? c(str).d() : "";
            return new zzn(str, v, M, N, O, P, Q, null, T2, false, H, g, 0, 0, h, i, false, y, j, S, k, B, d);
        }
        this.j.d().f.b("App version does not match; dropping. appId", q3.s(str));
        return null;
    }

    public final Boolean z(a4 a4Var) {
        Boolean bool = Boolean.TRUE;
        try {
            if (a4Var.N() != -2147483648L) {
                if (a4Var.N() == ((long) c.e.a.b.b.k.b.a(this.j.a).b(a4Var.o(), 0).versionCode)) {
                    return bool;
                }
            }
            String str = c.e.a.b.b.k.b.a(this.j.a).b(a4Var.o(), 0).versionName;
            if (a4Var.M() != null && a4Var.M().equals(str)) {
                return bool;
            }
            return Boolean.FALSE;
        } catch (NameNotFoundException unused) {
            return null;
        }
    }
}
